HOME ~ RESOURCE KIT ~ WEBMASTER'S ZONE ~ JAVASCRIPT ~ DESIGN TIPS
BACK TO JAVA
If this page loads slowly while several colour are cycled, your browser can read the script as intended. Reloading will repeat this effect.
Java background colour shifter
Locate the section that has the sections as below.
...
// black to black (pause)
bgChanger("000000","000000",25);
// black to red
bgChanger("000000","FF0000",25);
...
You will find the first two sets of numbers specify the hex colour value (black and red here) and the time delay, being 25 in this example. Modify the colours and delay as required. The script is involved and has two sections. The first initialises the arrays and values used while the second deals with how the page will load, the colours used and delays involved.
The script can be found in a text file named jbgshift.txt.
Copy the script in this text file into the required page, below the BODY tag. (If this will not work, you might place it in the HEAD section, however it works in the BODY on this page)