View Full Version : Adding Continuous Background Music Throughout Several Pages
Aragoth
11-03-2006, 07:34 PM
Hi.
I'm trying to make a webpage (based on a series of bands) that will include discographies, biographies, lyrics, etc, and I want to have some of these band's music to play while the viewer navigates the website. I insert the sound using the <bgsound src="songname.mp3" loop=1> and this works just fine. However, whenever the user links to a seperate page, the file cuts off. Is there any way to make an individual song play continuously as the user navigates?
jscheuer1
11-03-2006, 07:39 PM
See:
http://www.dynamicdrive.com/forums/showthread.php?t=6751
Aragoth
11-04-2006, 03:26 AM
That's actually a really good idea...and it would work wonderfully if it required the same song throughout. Rather, I would like the songs to change when certain pages are activated, and the song to continue until the viewer navigates to a page that changes it to the next song... Its a little complicated... Thanks for the quick response, though...
jscheuer1
11-04-2006, 03:55 AM
Well, there is no reason why your entire site need to be just one frameset. Each section could be its own frameset, carrying with it its own particular tune throughout its pages.
Aragoth
11-06-2006, 04:20 AM
Is there a way to make the individual frames close when another frame is opened? (as in when another page w/ music is activated?)
jscheuer1
11-06-2006, 04:59 AM
Yes. Say you have a link to another musical frameset anywhere within a frameset that is playing a tune in its bottom (all but invisible) frame. If you give this link a target of _top:
<a href="next_musical_frameset.htm" target="_top">Next</a>
It will break out of the current frameset and, if it is a frameset itself, establish itself along with its default sub pages in its frames as the new top page.
A similar thing could be done with a single iframe on the top page. Here the music would be embedded on the top page instead of in a frame of the frameset. The linked pages would appear in a full page iframe on that top page, when you want to switch tunes, you could break out of the iframe in the same exact manner.
Aragoth
11-10-2006, 06:53 PM
That worked extremely well. Thanks a lot!!!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.