Forum Moderators: open
I'm working on the background sound now and I've got it working with MSIE. I'm trying to get it working using the Netscape browser.
The idea is to put the home page in a one cell frame and put the background sound in the same frame so the music doesn't have to start over each time the viewer goes to another page. Each page could contain the code that starts the music but the music would start over each time the viewer goes to another page. I'm trying to get the music to play continuously when different pages are viewed.
Below is the code I'm using for the Netscape browser. I can either get the home page or the music but not both.
When viewed with the Netscape browser this code displays the home page but doesn't play the music.
<html>
<head>
<title>Netscape Background Music</title>
<embed type="audio/mpeg" src="Audio.mp3" HIDDEN=TRUE VOLUME=100 LOOP=TRUE>
</head>
<frameset col="*">
<frame src="Netscape_Home_page.htm">
</frameset>
</html>
This code with the frameset removed plays the music but does not display the home page.
<html>
<head>
<title>Netscape Background Music</title>
<embed type="audio/mpeg" src="Audio.mp3" HIDDEN=TRUE VOLUME=100 LOOP=TRUE>
</head>
</html>
I'm trying to put the home page in a one cell frame and have music playing in the background that doesn't have to restart each time the viewer using the Netscape browser goes to another page. Help!
<html>
<head>
<title>Netscape Background Music</title>
</head>
<frameset col="100%,*">
<frame src="Netscape_Home_page.htm">
<frame src="sound.htm">
</frameset>
</html>
There are drawbacks --
1. <embed> is not a valid html element, the W3C recommendation is <object> [w3.org]
2. By using a frameset, visitors will not be able to book mark inner pages plus there are more problems with frames [webmasterworld.com]
3. Enforcing background sond on visitors is irritating to many people (like people in offices, for example)
But I think the above approach will give you uninterrupted sound.