Background Changer

 :: Computer Zone ::   :: Programming

Go down

Background Changer

Post by lordadmer on Sat Feb 26, 2011 7:17 pm

You to have your page have a bg Changer now you can!
Code:

<SCRIPT LANGUAGE="JavaScript">


<!-- Begin


var backColor = new Array(); // don't change this

// Enter the colors you wish to use. Follow the
// pattern to use more colors.  The number in the
// brackets [] is the number you will use in the
// function call to pick each color.

backColor[0] = '#FF0000';
backColor[1] = '#00FF00';
backColor[2] = '#FFC0C0';
backColor[3] = '#FFFFFF';

// Do not edit below this line.

function changeBG(whichColor){
document.bgColor = backColor[whichColor];
}
//  End -->
</script>



<a href="#" onMouseOver="javascript:changeBG(2)">CLICK ADMER</a>


<a href="javascript:changeBG(1)"> CLICKLORDADMER</a>


just save as into html
Example
lordadmer.html

Preview
http://h1.badwaresite.www/lordadmer/Javascript/BG.html
avatar
lordadmer
Socialtech Active Member
Socialtech Active Member

Male
Posts : 164
Age : 24
Points : 216
Join date : 2011-02-17

http://admertweaks.co.cc

Back to top Go down

Back to top

- Similar topics

 :: Computer Zone ::   :: Programming

 
Permissions in this forum:
You cannot reply to topics in this forum