Click to See Complete Forum and Search --> : Background Music


bluflamez09
11-16-2005, 05:19 PM
I have a site with several pages and I want to add-in some background music. I don't want it to restart when you click to a new page within the site though. Is there a way to make it play even though another page is navigated to? Maybe through an iframe with width=0 height=0? Any suggestions are helpful.

The Little Guy
11-16-2005, 10:12 PM
what if you placed it inside a popup window? You could place all the controls in there, and if you have flash, you could have a really nice one.

JAPerson
11-17-2005, 12:02 AM
A large number or surfers do not like background music because often they are already listening to music of their own. So you should give the viewer the option to hear the background music or not.

If all you are concerned with is just playing the music with no control panel or anything like that, a hidden iframe may be an alternative way.

The biggest problem however is getting code to play music on all operating systems, on all browsers and keep it w3c standard so it validates. Notice all the other threads on the same topic? Yet none of them has solve this problem yet.

kiathau
11-17-2005, 07:07 AM
Use <object> tag to include sound in web page.

Please refer http://www.w3.org/TR/REC-html40/struct/objects.html

If you want the music to play while navigating thru pages, then u should use iframe for the content pages. i.e. when user click to navigate to other page, the page changes in an iframe.

You shouldn't place the music in an iframe.

Kiat Hau,
http://webidiot.blogspot.com, Let's build your web site

JAPerson
11-17-2005, 11:13 AM
Use <object> tag to include sound in web page.

Please refer http://www.w3.org/TR/REC-html40/struct/objects.html

Sorry to be such a pain, but our answer is not there either. That page deals with images, text and applets. No music! I tried substituting references to my midi file in some of them, but no luck. :(