Background Changer
:: Computer Zone :: :: Programming
Page 1 of 1
Background Changer
You to have your page have a bg Changer now you can!
just save as into html
Example
lordadmer.html
Preview
http://h1.badwaresite.www/lordadmer/Javascript/BG.html
- 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
:: Computer Zone :: :: Programming
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|