I need to find out what the devil is wrong with this script. This script is telling Internet Explorer (IE) to download the mp3 instead of playing it in the background!
afral@juno.com
--------------------------------------------------
<script language="JavaScript"
soundclip = "sounds/dancewolf-22-24m.mp3";
if (navigator.appName == "Netscape" {
if( navigator.mimeTypes["audio/mp3"].enabledPlugin != null ){
tag = '<embed src = "' + soundclip + '" autostart=True hidden=True loop=1 type=audio/mp3 >';
document.write(tag);
}
}
else{
tag = '<bgsound src = "' + soundclip + '">';
document.write(tag);
}
// --></script> Let freedom ring!
afral@juno.com
--------------------------------------------------
<script language="JavaScript"
soundclip = "sounds/dancewolf-22-24m.mp3";
if (navigator.appName == "Netscape" {
if( navigator.mimeTypes["audio/mp3"].enabledPlugin != null ){
tag = '<embed src = "' + soundclip + '" autostart=True hidden=True loop=1 type=audio/mp3 >';
document.write(tag);
}
}
else{
tag = '<bgsound src = "' + soundclip + '">';
document.write(tag);
}
// --></script> Let freedom ring!