slika.gifis the first frame of our movie as a separate file, and that
niz.gifis the full movie. For using the technique we are about to demonstrate, the movie should be in infinite loop mode.
At the place in our HTML document where we want the movie to be embedded, we insert the following piece of HTML code:
window.statusmessage makes the browser display the associated text in the status line of the window when the mouse is moved over the image, thereby offering the user a hint that the image can be animated. The
onClickproperty essentially starts the movie when the first frame image is clicked. The
onMouseOutproperty sets things back to original state when the mouse is moved away from the image, and it even makes the movie stop when he mouse leaves the image area.
Here is this example worked "in real life":
And a more complex example