40 users online (0 members and 40 guests)  


  Results 1 to 7 of 7

Related

  1. Music on my page    Forum: HTML Forum
    Replies: 1
  2. Cover page question    Forum: HTML Forum
    Replies: 0
  3. Cover page question    Forum: Website Scripts Forum
    Replies: 0
  4. Replies: 11
  5. Page in Page Question    Forum: HTML Forum
    Replies: 5
  1. #1
    Glenvern's Avatar
    Senior Member

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

    Web Page Music question

    I have music on my index page <bgsound> ..
    Consequently the music will play on all pages of the website..
    Is it at all possible to stop the music "automatically" when going to a new page or am I stuck with it until I leave the website?

    (My website currently is playing Christmas music but one of the pages is an "Obituary page" and "Jingle Bells" seems a bit inappropriate, hence my need to stop the music while visiting this page).

    Any help would be appreciated. thanx
    Glenvern

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    If I remember correctly you are using frames with the music source on the index. Have you considered placing the source in the "main" frame pages?

    Dave

  3. #3
    cokesodanotd's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2004
    Posts
    56
    admin edit: the "latest post" on many pages does not like code placed too close to the top of the post. That should push it down enough
    ______________________________________

    HTML Code:
    <embed src="file.wav" autostart=true
    loop=false volume=100 hidden=true
    width=142 height=58>
    <noembed>
    <bgsound src="file.wav">
    </noembed>
    </embed>
    you could try that.....

    *my attempt at trying to help*
    Last edited by HTML; 01-04-2005 at 06:33 PM.

  4. #4
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112
    Thanx Dave - Could you expand your suggestion a bit further please on how I get <bgsound> into the "main" of the "frameset" I can't see where it would go -

    <frame name="main" src="mainpage.htm">

    At the moment it is the first entry in the "index" after <head> and before the <framesets>...

    If I put it into all <target="main"> pages the music restarts itself everytime I go into the these pages which is every page on the website, I would prefer it to run continuously throughout the website except for this one page.

    I have tried "window.close()" which didn't work.
    I have tried redirecting to a new URL but the old URL remains and still plays on happily, I just can't stop it..

    ******************
    Thanx cokes: - If I use <embed> I believe I will get buttons which I would have to use in order to switch off the music this would not make it automatic.. I may be wrong I haven't tried it yet..
    Glenvern

  5. #5
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112
    Perhaps I should get out of the <frameset> for that page can you tell me how to do that and how to get back in again?
    Last edited by Glenvern; 01-05-2005 at 08:31 AM.
    Glenvern

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    You are obviously corrrect that the music would start anew with each internal link.

    To get out of the frameset, add target="_top" to the obit link in the menu frame. To go back is a bit more work since they may click other links and not the index. You will have to make a new frameset for each link (index is already made), giving each link on the obit page the attribute target="_top".

    Dave

  7. #7
    Glenvern's Avatar
    Senior Member

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

    Thumbs up

    Thank you Dave: That worked perfectly
    Glenvern



Tags for this Thread