Forum Moderators: open

Message Too Old, No Replies

Background sound

Netscape code for background sound

         

Adam5000

2:13 am on Feb 12, 2006 (gmt 0)

10+ Year Member



Hello everyone. Good to see you all again. After a record setting warm January, winter has returned and I'm working on my web site again. Your help last time was fabulous and thank you to everyone who helped.

All the code works great with MSIE but I'm having a little trouble getting it to work with Netscape.

Specificly the background sound. I've got an mp3 loaded on the server, along with the rest of the files for the pages, and when a visitor goes to the site, the mp3 downloads to the visitors computer and plays in the background. The code I'm using works great with MSIE but it doesn't work with Netscape.

Here's the code that works with MSIE

<SCRIPT language=Javascript>
document.write("<BGSOUND SRC=Audio.mp3 LOOP=INFINITE>")
</SCRIPT>

I'm trying to find the code that works with Netscape.

Little_G

12:48 pm on Feb 12, 2006 (gmt 0)

10+ Year Member



This may be of use to you:
http://www.faqs.org/docs/htmltut/sounds/sounds_famsupp_18.html [faqs.org]

Of course Flash would work even better and would allow you to give the user the option of turning the music off.
Background sounds can be very annoying.

Rambo Tribble

2:05 pm on Feb 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Flash will also provide a more cross-platform solution, as the Flash plug-in is broadly available.

Bernard Marx

7:51 pm on Feb 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Came across this perfect combination the other day:

[schillmania.com...]