Sunday, January 07, 2007

how do you

put that background music??

6 comments:

Jimmy Archer said...

Stick this into your html

< embed src="http://www.richardtsang.com/sam/Phenomenon.mp3" hidden="false"/>

Remove the space before embed, and change the addy to whereever your file is. I have a ridiculous amount of hosting so if you can't find a place to host, ask me.

Anonymous said...

Well, Jashen has it, but just a little add-on.

The embed tag doesn't work with some browsers, so you might want to use the <~bgsound> for cases where the embed doesn't work. Also remember to end your <~embed> so you can use <~noembed> just in case.

So like in Jashen's example:
<~embed src="http://www.richardtsang.com/sam/Phenomenon.mp3" hidden="false"><~/embed>
<~noembed>
<~bgsound src="http://www.richardtsang.com/sam/Phenomenon.mp3">
<~noembed>

You can also add parameters to the tags like autostart or loop where if you want to have it to automatically start while looping after it finishes, you can change it to:
<~embed src="http://www.richardtsang.com/sam/Phenomenon.mp3" hidden="true" autostart="true" loop="true"><~/embed>
<~noembed>
<~bgsound src="http://www.richardtsang.com/sam/Phenomenon.mp3" loop="infinite>
<~noembed>

Don't forget to ignore all ~ in the post, blogger doesn't allow html tags in comments so =S

Anonymous said...

hey, i'm extremely html/computer programming illiterate..
-can i put that < blurb > anywhere in the html? the "template" tab, i assume?
-what's web-hosting? does that mean i can send you a song, and you'll put it somewhere, and i copy the link into the < blurb >?

Jimmy Archer said...

1. Yes and yes.
2. It's basically an online hard drive and yes.

Anonymous said...

how did you get 7 comments...now 8...from "put that background music??" as a blog entry???

Anonymous said...

i suppose if you ask a question, you're bound to get answers....and if you have people like albert correcting his mitakes...well that doubles it.

and thanks jashen. i shall promptly send you a song, since i tried another < blurb > and it didn't work too well. =D