www.webdeveloper.com
Page 1 of 3 123 LastLast
Results 1 to 15 of 42

Thread: embedding continuous sound throughout site

  1. #1
    Join Date
    Mar 2006
    Posts
    22

    Arrow embedding continuous sound throughout site

    Hello all. I am new to this forum. I have just created my web site and managed to embed sound okay, with all controls including volume. When I click on a link to go to another page in my site the music stops. Is there a way to have the music and console "floating" throughout the site as visitors move from page to page?

    My website is: http://home.earthlink.net/~salamanders/

    Thank you.

  2. #2
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    you would have to have it loaded in a seperate frame or window - or just not have it at all.

  3. #3
    Join Date
    Mar 2006
    Posts
    22

    continuous sound throughout site

    Thank you for your prompt reply! How do I do that, place the console in a frame? Also, can the frame be as small as the console itself?

    Here's what I have written:
    <center>
    <EMBED SRC="http://home.earthlink.net/~salamanders/playlist.m3u"
    autostart="true"
    type="audio/mpeg"
    loop="true">
    </EMBED>
    </center>

    Thank you again.
    Last edited by salamanders; 03-13-2006 at 12:30 AM.

  4. #4
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    Only problem is that frames are out of date now days - but seeing as though its a personal site I dont see a problem in using them.

    Frames Tutorials

  5. #5
    Join Date
    Mar 2006
    Posts
    22
    Thank you again! I'll work on this.

  6. #6
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357

  7. #7
    Join Date
    Mar 2006
    Posts
    22
    Well, I'm back. I suspect I made a fine mess of things. I managed to get the screen divided into frames, but they are blank and the music now tries to open in my Windows media player. Here is what I have at the top of my source code:
    <html>
    <frameset rows="*,50">
    <frame src="http://home.earthlink.net/~salamanders/" name="main">
    <frame src="http://home.earthlink.net/~salamanders/playlist.m3u" name="sound"autostart="true"
    type="audio/mpeg"
    loop="true"> >
    <BODY BGCOLOR="87cefa"><b>
    <h1><center> FICTION WRITING </center> </h1><BR>

    Then, at the very bottom I typed
    </frameset>

    What am I doing wrong? Thanks for all your help.

  8. #8
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Oh, dear. You seem of of missed the point of frames. Let's just pretend that you never heard the word frame.

    Your best bet would be to open the music from a pop-up.
    HTML Code:
    <button onclick="window.open('player.htm','music','height=200,width=400');">Play the music</button>
    Last edited by the tree; 03-13-2006 at 06:34 AM.
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

  9. #9
    Join Date
    Mar 2006
    Posts
    22
    Thanks for replying. I'm trying frames because I want the music to autoplay as visitors browse my site and with the option of turning it off. Also, many people block pop-ups. Would your suggestion keep the music playing as visitors moved to a different page?

  10. #10
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Yes it would. It also would avoid the search engine, navigation and accessability issues that you are bringing into the arena with framesets.
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

  11. #11
    Join Date
    May 2005
    Location
    Northern Indiana
    Posts
    597
    Thanks for replying. I'm trying frames because I want the music to autoplay as visitors browse my site and with the option of turning it off. Also, many people block pop-ups. Would your suggestion keep the music playing as visitors moved to a different page?
    For what it's worth, my suggestion would be exactly the opposite of this. Provide your visitors the OPTION of listening to your music, IF THEY WANT TO, but do not auto-play it. At least you are thinking ahead to giving them the ability to shut it off, but background music is generally ranked right up there with Hamster Dance on "The Great Scale of all Things Annoying".
    (Also, this lends itself more to the use of a pop-up containing the music code, as users would launch the popup as the direct result of a link action, which most pop-up blockers will still allow)

  12. #12
    Join Date
    Mar 2006
    Posts
    22
    Thanks for replying. If the button thing will pay continuously as folks browse the site (going to other pages on the site) - which means the button will need to move with them to the new page - I'll probably wind up with that idea. For now, just for the learning experience, I'm trying not to go cuckoo getting the frames idea to work. I'm reading a lot of tutorials but they all seem to presume I know how to insert the SRC lines correctly, (my url, the file, etc.) which I do not. I'll keep trying. I'll probably be back for more help before I go completely nuts.

    Thanks again..

  13. #13
    Join Date
    Mar 2006
    Posts
    9
    This thread brings up a good idea. I often wondered how to do this my self.
    Surf the web anonymously & create Non-Whois registered Hidden websites with

    http://tor.eff.org/

  14. #14
    Join Date
    Mar 2006
    Posts
    22
    AHA! Success! http://home.earthlink.net/~salamanders/

    Thanks to all who helped, and so quickly. It's really very easy but a lot of the tutorials leave out the main point - the big reason for all the trouble I was having - and that is you need to create _3_ html documents instead of 2 (which is all I needed). The most important one tells the browser only frame info and that is now the index.html. What was originally the index.html is given a new name. I also managed to wipe out borders between the frames and color both the same. So I wound up with exactly what I was looking for. Now the music stays when folks click to move to a different page. And they can also turn it down or off if they want.

    Thanks again everybody.

  15. #15
    Join Date
    Apr 2005
    Location
    Behind my DiGiCo SD7 Console
    Posts
    900
    I wouldn't have music at all, what happens if the person viewing your site has dialup?
    Registered Linux User: #463250
    -----------------
    HELPFUL LINKS
    PHP - http://www.php.net
    Website Color Schemer - http://www.colorschemer.com/online.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles