stvchez123
Programmer
Hi need to get working in both IE and Netscape. Though I do have it working in IE, I can't seem to get it in Netscape. I've been searching and found alot of info on it, but can't quite get it. I've attached the code snippet that I'm using so far. I'm wondering if maybe somebody has done this in the recent past and could help me out.
//code snippet
<script TYPE="text/javascript">
<!--
var filename="instrumental.wav";
if (navigator.appName == "Microsoft Internet Explorer"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
document.writeln ('<BGSOUND SRC="' + filename + '">');
else if (navigator.appName == "Netscape"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
// -->
</SCRIPT>
<noscript>
<bgsound SRC="instrumental.wav">
</noscript>
// url
//code snippet
<script TYPE="text/javascript">
<!--
var filename="instrumental.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>
<bgsound SRC="instrumental.wav">
</noscript>
// url