Feedback on: irt.org FAQ Knowledge Base Q485
irt.org | About | Feedback | 2919 [ previous next ] Feedback on: irt.org FAQ Knowledge Base Q485
Sent by Shibu Nair on June 29, 2001 at 00:59:09:
Length: Too long
Comments: Hello., I tried using the code, but met with some problem. Well i got another code: This works in IE as Well in Netscape. <script language="JavaScript"> function MM_controlSound(x, _sndObj, sndFile) { //v3.0 var i, method = "", sndObj = eval(_sndObj); if (sndObj != null) { if (navigator.appName == 'Netscape') method = "play"; else { if (window.MM_WMP == null) { window.MM_WMP = false; for(i in sndObj) if (i == "ActiveMovie") { window.MM_WMP = true; break; } } if (window.MM_WMP) method = "play"; else if (sndObj.FileName) method = "run"; } } if (method) eval(_sndObj+"."+method+"()"); else window.location = sndFile; } </script> <body> <a href="Filename.htm" onMouseOver="ChangeImage('l1');MM_controlSound('play','document.CS993792961750','Laser.wav')">
</body>
Other feedback on 'irt.org FAQ Knowledge Base Q485' - show all
|