Feedback on: irt.org FAQ Knowledge Base Q485
Comments:
it simply does not work.
i am using netscape 4.51 on win95b.
gets message on netscape javscript console:
unable to reflect embed with index 0 - not loaded yet?.
Worth:
Worth reading
Comments:
Couldn't get this to work in NS4.72.
IE5.0 gave error, said re line:
document.embeds[0].run();
"object not supported in DOM"
Changing run() to play() worked in IE5.0. Still no joy with NS4.72
Comments:
I inserted image. OK. Inserted my sound.mid after embed src"XXX.mid, in two places, and nothing.??
what goes in a href after the #??
thanks for the script. I must be leaving someting out. Jim
Worth:
Not worth reading
Comments:
try posting some code that actually works!!!
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>