Results 1 to 7 of 7

Thread: Adding Continuous Background Music Throughout Several Pages

  1. #1
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Adding Continuous Background Music Throughout Several Pages

    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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

  3. #3
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

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

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Is there a way to make the individual frames close when another frame is opened? (as in when another page w/ music is activated?)

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    HTML Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    That worked extremely well. Thanks a lot!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •