Click to See Complete Forum and Search --> : Implementation of background music for html


Sgt_Strider
07-04-2002, 08:13 PM
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 :).

dighn
07-04-2002, 08:58 PM
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/html/tagpages/b/bgsound.htm

Sgt_Strider
07-04-2002, 11:18 PM
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.

Sgt_Strider
07-05-2002, 12:31 AM
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...

dighn
07-05-2002, 01:45 AM
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.

Sgt_Strider
07-05-2002, 03:00 AM
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 :).

dighn
07-05-2002, 07:27 PM
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.

Sgt_Strider
07-06-2002, 04:28 AM
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....