HOUR 19:Using Graphics and Animation

What You’ll Learn in This Hour:

• Using JavaScript to swap images within a page

• Using JavaScript rollovers

• Using CSS rollovers

• Creating an image slideshow

• Adding animation to the slideshow

Welcome to Part V! So far, you’ve used JavaScript to work with text and forms in web pages. In the next two hours, you’ll look at how JavaScript can work with graphics, sounds, and plug-ins. This hour focuses on using JavaScript to manipulate graphics and create animated displays.

Using Dynamic Images

Long before the W3C DOM allowed JavaScript to change any part of a web page, a feature called dynamic images enabled you to swap one image for another with JavaScript. This technique ...

Get Sams Teach Yourself JavaScript in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.