Why do my images dissappear after I clik on them? Otherwise, the text to speech is working just fine. However, it is not functional if the images dissappear.
[HTML]<script language="JavaS cript" type="text/javascript" >
<!--
function insertTTS(tts,l oop) {
document.write( '<object classid="clsid: 166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/director/sw.cab#version= 8,5,0,0" ID=ib_tts width=1 height=1>\n');
document.write( '<param name=src value="media/tts.dcr">\n');
document.write( '<param name=swRemote value="swSaveEn abled=\'true\' swVolume=\'true \' swRestart=\'tru e\' swPausePlay=\'t rue\' swFastForward=\ 'true\' swContextMenu=\ 'true\' ">\n');
document.write( '<param name=swStretchS tyle value=none>\n') ;
document.write( '<param name="sw9" value="'+tts+'" >\n');
document.write( '<param name="sw8" value="'+loop+' ">\n');
document.write( '<embed src="media/tts.dcr" bgColor=#FFFFFF width=1 height=1 swRemote="swSav eEnabled=\'true \' swVolume=\'true \' swRestart=\'tru e\' swPausePlay=\'t rue\' swFastForward=\ 'true\' swContextMenu=\ 'true\' " swStretchStyle= none type="applicati on/x-director" pluginspage="ht tp://www.macromedia. com/shockwave/download/" sw9="'+tts+'" sw8="'+loop+'"> </embed>\n');
document.write( '</object>\n');
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitl ed Document</title>
</head>
<p><img src="dog.jpg" width="50" height="66" onclick="insert TTS('My favorite animals', 'false')" /></p>
<p><img src="dog.jpg" width="50" height="66" onclick="insert TTS('My favorite martian', 'false')" /></p>
<p> </p>
</body>
</html>[/HTML]
[HTML]<script language="JavaS cript" type="text/javascript" >
<!--
function insertTTS(tts,l oop) {
document.write( '<object classid="clsid: 166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/director/sw.cab#version= 8,5,0,0" ID=ib_tts width=1 height=1>\n');
document.write( '<param name=src value="media/tts.dcr">\n');
document.write( '<param name=swRemote value="swSaveEn abled=\'true\' swVolume=\'true \' swRestart=\'tru e\' swPausePlay=\'t rue\' swFastForward=\ 'true\' swContextMenu=\ 'true\' ">\n');
document.write( '<param name=swStretchS tyle value=none>\n') ;
document.write( '<param name="sw9" value="'+tts+'" >\n');
document.write( '<param name="sw8" value="'+loop+' ">\n');
document.write( '<embed src="media/tts.dcr" bgColor=#FFFFFF width=1 height=1 swRemote="swSav eEnabled=\'true \' swVolume=\'true \' swRestart=\'tru e\' swPausePlay=\'t rue\' swFastForward=\ 'true\' swContextMenu=\ 'true\' " swStretchStyle= none type="applicati on/x-director" pluginspage="ht tp://www.macromedia. com/shockwave/download/" sw9="'+tts+'" sw8="'+loop+'"> </embed>\n');
document.write( '</object>\n');
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitl ed Document</title>
</head>
<p><img src="dog.jpg" width="50" height="66" onclick="insert TTS('My favorite animals', 'false')" /></p>
<p><img src="dog.jpg" width="50" height="66" onclick="insert TTS('My favorite martian', 'false')" /></p>
<p> </p>
</body>
</html>[/HTML]
Comment