Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Netscape 4.8 and Netscape 7.22 not playing sound

Neither browser wants to play a sound via a javascript

2:20 pm on May 22, 2003 (gmt 0)

New User

10+ Year Member

joined:Aug 9, 2002
votes: 0

I used the CountrolSound behavior from Macromedia Dreamweaver 4.0 Ultradev and it was working before in netscape 4.76, but now in netscape 4.8 and Netscape 7.22 the sound will not play.

<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;

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.


10:54 pm on May 23, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jeremy_goodrich is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 4, 2000
votes: 0

Hm, I don't play with sound on my sites - anybody else have some help for this?