Forum Moderators: open
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
//
IDP={}; IDP[0]=0;
isOvr=0; function OnOver(snd,txc,txv,img,imv,ref,flag){}
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>
Above is the complete script. The script is activated by a link that contains "javascript:MMcontrolSound('play','document.CS1039046370708','fifteen2.wav')"
The sound plays fine in IE and netscape 4.76 but not in the other two browsers. Anyone have any ideas?
The link I used is the only way I can get it to work between netcape 4.76 and IE, if I change it to an onClick event with a "#" link it will not work in any browser.
--
Grafix