along the way of JavaScript |
The Individual Images | |||
---|---|---|---|
The document.images[...] array in Netscape 3.0 and 4.0 is an array of all the images in the document. The src property lets you get or set the image that is displayed. So document.images[...].src = "new.gif" changes the image. Using a timer, the image can be animated. It is shown here with buttons that let you set the interval [in milliseconds] between image changes to get the 'feel' of animation timing.:
Note: See the trick in the tutorial about controls. The images must be preloaded. As they are demonstrated already on this page, the trick was unnecessary.
Also: