You need two images, the animation itself and an image made from the
first frame of the animation. This can be extracted using a program like
the 'Gif Construction Set'.
Insert this code in your <head></head> tags:
Use this code for the first image
(animantion stops after cursor removed):
Use this code for the second image
(animation continues even when cursor is removed):