• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Fun with Images > Automatically Changing Background Colors

Automatically Changing Background Colors

To be honest, we're not exactly sure why you would want to change your page's background colors with JavaScript, but since you can do it, we figured we would let you in on the technique. In Figures 3.26 and 3.27, you can see how we're changing the background color every three seconds, cycling between red, white, and blue (not shown). Get the lowdown on how to do it in Script 3.18.

Figure 3.26. The initial white background.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint