Assignment

Figure 4-20 and Figure 4-21 show you a page which does two image swaps simultaneously. Notice that mousing over the text on the bottom of the screen changes the words from turn over to turn back and swaps the book's front cover with its back cover. The words, like the book covers, are images, and they are swapped using the techniques we've learned in this chapter. Your assignment is to write a similar page where mousing over one image causes two images to change.

The assignment page before the rollover

Figure 4-20. The Chapter 4 assignment page before the rollover

The assignment page after the rollover

Figure 4-21. The ...

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.