Color Bar | JavaScriptSource

Color Bar

Corey Ogburn Oct 20, 2005

JavaScript first uses document.write(); to draw the table wherever you call the script to be written. After that, it repeatedly runs another function that gives each cell in the table a new Class name that is a random number. That number is used by the CSS to determine what color to make the background. No real function, just fashion.

Leave a Response

(0 comments)