31 users online (1 members and 30 guests)  

Thread: Website Music


  Results 1 to 5 of 5

Related

  1. Replies: 1
  2. Im looking to build or purchase a music website    Forum: Websites For Sale
    Replies: 2
  3. Website Music    Forum: HTML Forum
    Replies: 2
  4. Website music    Forum: General Discussion
    Replies: 7
  1. #1
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112

    Website Music

    Is there any script that will (automatically) change
    the tune when I link to a new page on the same
    website and then back to the original tune when I
    return?
    Last edited by Glenvern; 01-25-2004 at 01:19 PM.
    Glenvern

  2. #2
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440
    The easiest way I could think of would also be the most obvious. Just use the javascript "body onload" on each page so what you want gets played on each page.
    (Unless I'm misunderstanding your question).

  3. #3
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112

    Website Music

    Thanx Android unfortunately I have that already -

    I have a frames website and I have <bgsound> in the "index.htm" and it plays continuously throughout the site, but what I would like is the music to play a different file on one of the pages (its a xmas page and I would like some xmas music on that page only) and when I leave that page it reverts back to the original bgsound music.. (bit of a tall order I'm thinking).. I am also trying to avoid buttons..
    I was wondering if it could be done with <onLoad> and <onUnLoad>?
    Glenvern

  4. #4
    andrews_john's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    4
    Could it be done with php? Smth like:
    <a href=page1.php?music=file1>
    and at "page 1" smth like:
    <body bgsound=<?$music?>>
    maybe that will help?

  5. #5
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112
    Thanx for that I'll check it out..

    Perhaps a simpler question would be - how do I stop <bgsound> without leaving the page thats playing it and not using any buttons?
    Glenvern



Tags for this Thread