View Full Version : Netscape sound

07-11-2003, 09:14 AM
I have the following script in my page to automatically launch a sound file:

<script type="text/javascript"><!--
document.write('<embed src="doodlin.mp3" autostart="true" loop="0" controls="SmallConsole" width=50 height=15><\/embed>');}
else if(navigator.appName=="Microsoft Internet Explorer"){
document.write('<embed src="doodlin.mp3" autostart="true" loop="0"><\/embed>');}
document.write('<embed src="doodlin.mp3" autostart="true" loop="0"><\/embed>');}
<noscript><embed src="doodlin.mp3" autostart="true" loop="0"></embed></noscript>
<noembed><bgsound src="doodlin.mp3" loop=1></noembed>

I picked this up quite a while ago but have only just begun to use it. It works exactly as it's supposed to in MSIE, but Netscape will not play the song. I realize that only about two people still use Netscape, but even they deserve to hear the music. So I wonder if you might have any insight as to why this won't play the song on Netscape?
Possibly you could point me to a better (ie: working) script?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum