You are here: irt.org | About | Feedback | 204 [ previous next ]
Feedback on:
JavaScript FAQ Knowledge Base Q390
Sent by
Linda Titus on May 27, 1999 at 06:42:32:
Worth:
Very worth reading
Comments:
Regarding the answers to: Q390 "How can you make a .wav play when you click on an image?", this works in Netscape 4 but not in Explorer 4. In Explorer 4 I get this: "An error has occurred in the script on this page.
Line: 5
Char: 24
Error: Object doesn't support this property or method
Code: 0"
Could you please help me out and tell me what to do to make it work with Explorer 4? Here's the exact script I used:
<HTML>
<BODY>
<SCRIPT LANGUAGE="JavaScript"></SCRIPT>
<A HREF="javascript:playSound()"><IMG SRC="play.gif" WIDTH="100" HIGHT="100"></A><BR>
<A HREF="javascript:pauseSound()"><IMG SRC="pause.gif" WIDTH="100" HIGHT="100"></A><BR>
<A HREF="javascript:stopSound()"><IMG SRC="stop.gif" WIDTH="100" HIGHT="100"></A><BR>
<EMBED SRC="canyon.mid" HIDDEN=TRUE AUTOSTART=FALSE LOOP=FALSE NAME="firstSound" MASTERSOUND>
</BODY>
</HTML>