Hi,

I got a javascript code for embedding sound file with mouseover, but it doesn't work on web. In IE, the error message states that at the beginning of some line, object is expected. Mind to check the code below for the error? Thanks (You can find the test page at: http://www.jaylight.org/embedsound.html )

<html>
<head>
<script language="JavaScript"><!--
loaded = false;
function playIt(sndAction,sndObj) {
if (eval(sndObj) != null && loaded) {
if (sndAction == 'stop') sndObj.stop()); //stop, else play
else (navigator.appName == 'Netscape') ? sndObj.play(false): sndObj.run();
}
}
//--></script>
</head>
<body onLoad="loaded=true">
<embed name="sound1" src="http://www.jaylight.org/Music/bird.wav"; loop="false" autostart="false" mastersound="mastersound" hidden="true" width="0" height="0"></embed>
<br><a href="http://www.jaylight.org"; onMouseOver="playIt('play','document.sound1')" onMouseOut="playIt('stop','document.sound1')">hover over this link to play</a>
</body>
</html>


=================
KoaFar



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________ http://www.wdvl.com _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to