|
Let your visitors to change color adjustments. Any elements of your page can be changed
(bgColor, color of the text, frameworks, tables...).
This script has the interface similar to the basic graphic programs. There are 3
color strips - color, contrast and brightness. Clicking on them you choose color.
Due to a new method shown on this site it became simple. Then script returns value of
color in your page, and you can to any element give new color.
In our example we change color of a background of page.
Demo: change color. 
Look a below auxiliary code. He load new page with our main script. After the color is chosen, this code changes of color. You can keep the user adjustments in a database or in cookies.
We used function ' cookies.js' from the book 'JavaScript
Cookbook'. At the subsequent loadings the color of page will be kept. If search to cookies to make on
other pages, also they will have this color.
The main script has function 'return ()'. This function works according to with a code on this page. For Internet Explorer she returns variable. For Netscape she reload this page, but with new values QueryString.
If you want, can change a method of interaction of your page with the main script.
To insert a script on the page you have:
- Insert these lines into any place of page:
-
Load main script, cookies script and folder with images. Unzip and stored to the same folder where you keep your page with the script.
back to free |
|