Hey ppl... can anyone help? I can't get my browser detection and MIDI file to work in Netscape... here's the code i'm using:
Code:
<SCRIPT LANGUAGE="JavaScript"> <!--
if (navigator.appName == "Netscape")
{ document.write('<embed SRC="music.mid" AUTOSTART=true HIDDEN=true LOOP=true></embed>');
}
else
{ document.write('<bgsound src="music.mid" loop=-1 width=200 height=55>');
}
//-->
</SCRIPT>
i've placed the code into "index.htm" here:
Code:
<html>
<head><title></title></head>
<body>
(SCRIPT STARTS HERE)
any ideas why Netscape doesn't play the MIDI file, but IE does??
Thanks in advance...