Implementation of background music for html

Sharky Forums


Results 1 to 8 of 8

Thread: Implementation of background music for html

  1. #1
    Hammerhead Shark Sgt_Strider's Avatar
    Join Date
    Feb 2002
    Location
    Vancouver, B.C, Canada
    Posts
    2,082

    Implementation of background music for html

    Hi, I was wondering for making background music, is the command body bgmusic="filename"? I can't really remember how to do it as I its been a while since I have done something like that. Also I remember when trying to do that in the past, it didn't work with mp3 files and it only worked with wav files. As you know, wav files are really freakin big and I need some way for it to compress and read it. What other compression can I use? Btw this is kind of a personal site going so that is why i'm adding background music .

  2. #2
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171
    even mp3s are too big. not everyone is on broadband so i suggest midi

    btw bgsound is a internet explorer only tag so you want to use embed

    check this out
    http://www.pageresource.com/html/embed.htm

    or if you insist on using bgsound..
    suit yourself: http://www.blooberry.com/indexdot/ht.../b/bgsound.htm
    .

  3. #3
    Hammerhead Shark Sgt_Strider's Avatar
    Join Date
    Feb 2002
    Location
    Vancouver, B.C, Canada
    Posts
    2,082
    Cuz the song that I want to play right now is at 3 megs which is in mp3 form. Thx for the info. Anymore help would be greatly appreciated.

  4. #4
    Hammerhead Shark Sgt_Strider's Avatar
    Join Date
    Feb 2002
    Location
    Vancouver, B.C, Canada
    Posts
    2,082
    Hey dude, I have gotten the embed tag to work but there's one thing that bothers me. Is there a way to set the volume to? Also is there a way to get the music to keep on going and don't stop as you go to another page? They're both linked together, its just that the song starts all over when I switch page...

  5. #5
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171
    Originally posted by Sgt_Strider
    Hey dude, I have gotten the embed tag to work but there's one thing that bothers me. Is there a way to set the volume to? Also is there a way to get the music to keep on going and don't stop as you go to another page? They're both linked together, its just that the song starts all over when I switch page...
    volume? i dont nkow of anyway to set that.

    as for keeping the musci playing. you could use frames, make one frame so small that it's invisible and put the embed in that frame and put all your content in the other frame. that should work.

    although a 3 mb background sound?! i hope you aren't serious.
    .

  6. #6
    Hammerhead Shark Sgt_Strider's Avatar
    Join Date
    Feb 2002
    Location
    Vancouver, B.C, Canada
    Posts
    2,082
    Originally posted by dighn


    volume? i dont nkow of anyway to set that.

    as for keeping the musci playing. you could use frames, make one frame so small that it's invisible and put the embed in that frame and put all your content in the other frame. that should work.

    although a 3 mb background sound?! i hope you aren't serious.
    Hmm...I think there could be a simpler way to do that...About the volume, the music is a little on the soft side and I want to pump it up a notch . I am serious about the 3mb background sound :P. Just fyi, the song/music is from star wars episode 2 . I just want to stress the mood of the page and there is enough room to store the music .

  7. #7
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171
    Originally posted by Sgt_Strider


    Hmm...I think there could be a simpler way to do that...About the volume, the music is a little on the soft side and I want to pump it up a notch . I am serious about the 3mb background sound :P. Just fyi, the song/music is from star wars episode 2 . I just want to stress the mood of the page and there is enough room to store the music .
    no i dont think there's a simpler way to do it. when you reload a page, all elements on the page is purged so you need a persistent page for the music playing thingie to be persistent.

    as for the volume, you could use some program to adjust the volume of the mp3 itself.

    still i think 3 mb is a little too big for background sound. tht would take lik 15 minutes to load on a modem.
    .

  8. #8
    Hammerhead Shark Sgt_Strider's Avatar
    Join Date
    Feb 2002
    Location
    Vancouver, B.C, Canada
    Posts
    2,082
    Originally posted by dighn


    no i dont think there's a simpler way to do it. when you reload a page, all elements on the page is purged so you need a persistent page for the music playing thingie to be persistent.

    as for the volume, you could use some program to adjust the volume of the mp3 itself.

    still i think 3 mb is a little too big for background sound. tht would take lik 15 minutes to load on a modem.
    Actually most of my friends have cable and it should be alright. But you are right about the loading up part, hmm....

Posting Permissions

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