Random Background | JavaScriptSource

Random Background

Dan Laudel Sep 18, 2001
Allows the visitor to change the background color on the Web page. The color can even be set to change constantly at a set interval.
Type a color name or a hexadecimal value into the first textbox and click "Change Background" to view it as the background color. Click "Random Background" to view a random color and see its hex value in the textbox below. "Change Constantly" wil l make a new, random background color at the defined interval, and "Stop!" will stop the interval. [Do not click "Change Constantly" more than once without clicking "Stop!" first or the script will be uncontrollable.] None of the background colors are predefined, they are selected randomly.

Current Random Background

Rate of Change in Milliseconds:  

The JavaScript Source: Image Effects: Random Background

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response