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

Hour 15. Using Graphics and Animation > Using Dynamic Images in JavaScript

Using Dynamic Images in JavaScript

One of the most useful features of JavaScript is the capability to dynamically change images. This means you can create images that “magically” change, which could be used for clocks, image rollovers (images that change when you move the mouse over them), or even simple animations.

The images in a Web page are reflected in an array, just like form elements. By modifying the properties of the array items, you can replace the image with a different one. This enables you to create dynamically changing content on the page without even using frames or layers.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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