jasonc310771
10-29-2006, 11:39 AM
Below is the code that will play music in Internet Explorer and Netscape but i do not have any code to allow us to play music in a FireFox mozilla browser!
does anyone have any ideas what i should use to get this to work.
thanks in advance for your help.
[code]<SCRIPT TYPE="text/javascript">
<!--
var filename="music/MySong.wav";
if (navigator.appName == "Microsoft Internet Explorer")
document.writeln ('<BGSOUND SRC="' + filename + '">');
else if (navigator.appName == "Netscape")
document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
// -->
</SCRIPT>
<NOSCRIPT>
<EMBED SRC="music/MySong.wav"></EMBED>
</NOSCRIPT>[code]
does anyone have any ideas what i should use to get this to work.
thanks in advance for your help.
[code]<SCRIPT TYPE="text/javascript">
<!--
var filename="music/MySong.wav";
if (navigator.appName == "Microsoft Internet Explorer")
document.writeln ('<BGSOUND SRC="' + filename + '">');
else if (navigator.appName == "Netscape")
document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
// -->
</SCRIPT>
<NOSCRIPT>
<EMBED SRC="music/MySong.wav"></EMBED>
</NOSCRIPT>[code]