Park Slope Winter
Try a Class
Upper East Side
Upper West Side
How Classes Work
In this project, we're going to make a webpage with crazy flashing colors!
For an example, click
& login or create an account
Add an appropriate page title
Set the width and height of the HTML and body to 100% each
Make an array that holds a bunch of different colors (You might need to use google to figure out how to use an array)
Using a random number, write a function that changes the background color of the body to a random color from your list
Make that function run every x seconds. Play around to decide how fast you want the colors to change.
Append the divs to the page
Set the height and width of the divs
Make the function that changes the background color of the body change the background color of one of the divs in your array
Now, make the function work on all of the divs in the array
If your divs are all in a line, format them into a grid. (Hint: use inline-block)
Continue working until you are happy with your project.
Publish your website and submit it below.
all or Text us at
Your Email Address