Michel H. wrote:

> How can I make it clear to Netbug 6.1 that it should NOT download a
> background sound (type WAVe), but play it in the background like MSIE
> 5.x/6.0 and Opera 5.x properly does.
> 
> First I detect the browser version using Javascript:
> 
> <script LANGUAGE="JavaScript">
> 
> <!--  Begin
> var MSIE=navigator.userAgent.indexOf("MSIE");
> var NETS=navigator.userAgent.indexOf("Netscape");
> var OPER=navigator.userAgent.indexOf("Opera");
> if((MSIE>-1) || (OPER>-1)) {
> document.write("<BGSOUND SRC=Sounds/bg_snd.wav LOOP=INFINITE>");
> } else {
> document.write("<EMBED SRC=Sounds/bg_snd.wav AUTOSTART=TRUE ");
> document.write("HIDDEN=true VOLUME=100 LOOP=TRUE>");
> }
> // End -->
> </script>
> 
> Hoping for an explanation why Netbug 6.1 won't just play sounds as a
> background sound. Why does it attempt to download it?
> 
> Kind regards,
> 
> Michel H.
> 
> 
> 
> 

Well this is the wrong group, this is about embedding the mozilla client 
into other apps, not embedding things into Mozilla or Netscape.

As for why would NS 6.1 want to download the .wav rather than play it - 
the reason is simple, you must not have a plugin installed that handles 
.wav files. If you think Netscape should support .wav files without the 
need for plugins please request this in the Netscape 6 feedback centre, 
click Help > Feedback Center in the menu bar.

To get a plugin point Netscape 6.1 at: 
http://home.netscape.com/plugins/manager.html
According to the info I see on there, QuickTime supports .wav files so 
make sure that the quicktime plugin is installed for Netscape 6.1 - the 
page mentioned there will help.

BTW to look for Netscape you should use: 
navigator.appName.indexOf("Netscape") rather than UserAgent. Two reasons:
1. Netscape 4.x and below has no 'Netscape' in the user agent string but 
has in appName
2. Mozilla based browsers that are not Netscape branded (like the ones 
at www.mozilla.org) do not have 'Netscape' in the user agent string but 
do in the appName.


Reply via email to