<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- TWO STEPS TO INSTALL BACKGROUND COLOR-CHANGE:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document --><!-- STEP ONE: Paste this code into the HEAD of your HTML document --><HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1256">
<SCRIPT language=JavaScript>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://www.ostadonline.com -->
<!-- Begin
// Copyright 2001 by www.CodeBelly.com
// Please do *not* remove this notice.
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>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<META content="MSHTML 6.00.2726.2500" name=GENERATOR></HEAD>
<BODY><!--
Example One -- changing bg color with mouseOver.
Set the number in the () in the changeBG() function
to the number of the color in the brackets in the
backColor[] array to select a given color.
//--><A onmouseover=javascript:changeBG(2)
href="file:///C:/Documents%20and%20Settings/B.Zarabian/Desktop/g.html#">Change
by placing mouse over link</A> <!--
Example Two -- changing bg color with a mouse click.
Set the number in the () in the changeBG() function
to the number of the color in the brackets in the
backColor[] array to select a given color.
//--><A href="javascript:changeBG(1)">Change by clicking on link</A>
<P>
<CENTER><FONT face="arial, helvetica" size?-2?>Free JavaScripts provided by
ostadonline<BR><!-- Script Size: 1.79 KB --></FONT></CENTER></BODY></HTML>