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 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.