Results 1 to 7 of 7

Thread: audio carried through pages

  1. #1
    Join Date
    Dec 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default audio carried through pages

    hi,
    i am trying to embed an audio file into my site. i am using this code

    <EMBED height="96" SRC="../audio/santaclausiscomintotown.aif" autostart="true" hidden="true" volume="100" loop="true" type="audio/mpeg" width="128">

    is there a way to carry this audio over while people go to different pages on my site? in other words, i want the same song played on every page in my site, but i dont want it to restart on every page. is this possible? if i need javascript or anything besides html, can you explain how i would do it? thanks so much.

  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

    Default

    The most straightforward way I know of (there could be a better way) is to make your site a frameset. Have one page in the frameset always loaded and have that be a page with just the embedded sound on it. If you want to be clever you can have that frame be only one pixel high and/or one pixel wide with no scrollbars or border. You could then have just the one other frame taking up practically the whole frameset to display the rest of the site in normally.
    - John
    ________________________

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

  3. #3
    Join Date
    Dec 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sweet. thanks, ill try that.

  4. #4
    Join Date
    Dec 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i made a page with the audio file embedded in it and i made the mage 774(the width of all my other pages)x8. i also made it the same color as my other pages. yet, when i combine the regular pages and the frame page into frames, its all screwed up. it looks like this now:


    homepage.mac.com/mavrick4224/pages/emailsanta.html

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

    That is not the proper way to do a frameset page. No body tag or content other than the frameset (and anything you might want to put inside of the <noframes></noframes> tag for non-frames capable browsers) is allowed. The framset does just that. It sets the frames for the site. All content is to be made available through it on the pages named in the src attributes of the individual frames.
    - John
    ________________________

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

  6. #6
    Join Date
    Dec 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    so you mean make a new page just for the frame? i did that just now and it does the same thing. sorry, i havent used frames in a long time, so im not totally up to par with how to use them. thanks

  7. #7
    Join Date
    Dec 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nevermind, i got it...i just had doubles of stuff.

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
  •