Forum Moderators: open

Message Too Old, No Replies

Netscape and frames and background sound

Code for frames with background sound using Netscape

         

Adam5000

3:07 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



Hello everyone, thank you all for your help.

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!

tedster

11:02 pm on Mar 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this: First, place the embed element in the <body> (not the <head>) section of a second html document, let's call it "sound.htm". Then build a frameset that frames both sound.htm and Netscape_Home_page.htm

<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.

Adam5000

5:36 pm on Mar 23, 2006 (gmt 0)

10+ Year Member



Thank you Tedster. With your help, I was able to troubleshoot the problem and It's working good now.