JavaScript Tip of the Week for May 27, 1996: The Infamous 3.0
(Netscape Navigator) | 2 | WebReference   JavaScript Tip of the
Weekfor May 27, 1996: How to Create Animations Using JavaScript
Animated GIFs are an easy way to do animation. But it is
difficult to control the speed of a GIF animation and it may
play back at varying and erratic speeds. Now with Netscape 3.0's
ability to change images right on the page, it is possible to
create and control animations using JavaScript. The animation
below, which is probably still loading, is an example of this.
Using the faster and slower buttons, you can control the speed
of the animation.  Slower Faster  To create an animation like
this, you must first create a series of images. Then, to play
those images back easily, the images must be preloaded into
arrays. For the animation of the waving stick figure, I created
eight images and named them "wave1.gif", "wave2.gif", and so on.
In these examples, that is what I will be using.  First define
these variables, which d