This combination of onmouse and javascript will let visitors to your web site adjust the
background color. They can change individual pages or set a color for your complete web
site. To set a permanent background color requires cookies to be enabled on the client side.
You can also set a default background color that your visitors will see the first time they
visit your site.
This script is installed in two parts. First install the below in the <HEAD> section of
each web page you want to use this background color selector on.
Below are simple links that change the background temporality on mouse over. Then set a cookie for a site wide long term background color on click. These go in the <BODY> section. The "Your background color is" will only change if you refresh or reload the page. You must include that little bit of javascript for this to work.
Here is the HTML for the above links.
This script has a odd characteristic. This only seems to occur on winxp computers when you call the script from the local hard drive. Like when you are setting it up for the first time. Some times the page will go all black. Just wiggle your mouse around until you run over the change color link. Then set a color. It will not happen again. Nor will it happen when it is called by a visitor to your web site.
For most of you this will not happen, it only affects a few very fast winxp users.
If you just want to change the color onmouseover and not set a cookie it will look like the below.
Here is the HTML for the above links.
Problems, Complaints, Great Thoughts? Drop namtog a line at [email protected]