Home > Uncategorized > Music Bg Mp3

Music Bg Mp3

October 17th, 2008

music bg mp3
How do i get this html script to open music / change the bg color?

the script:

Choose site!
Runescape
Yahoo
Hasterpaj
The piratebay

How do i get music there instead of the sites? and how to get so i can change the bg color instead of the sites in the drop menu?

Music script = .

You’ll need to do a bit of coding. Depending on what music you want in the drop-down, you need to either a) link to the file (if you want something like Windows Media Player to play the music) or b) call to a player application you have running on your page.

To change your background color, you’ll need to build a basic script that you call which will change the background color (don’t use the example below as an exact reference – you’ll need to doublecheck the exact syntax to change the color, but the logic will work)

function bgChanger(theColor){
var styler = “background-color: “+theColor;
document.getElementById.setAttribute(“style”, styler);
}

Something along these lines should work (for an element with id=). for the whole document, just drop the getElementById piece.

To call it, instead of a URL in the drop-down, you’d put in value=”bgChanger(#000000)” for a black background or value=”bgChanger(#ffffff)” for a white one.

Again, you’ll need to futz with it to be sure it does everything you want it to.

Taito’s MELT (With bg music) + Mp3


Comments are closed.