This script shows an example of how to use server push to animate images. It works by pushing gif files listed in a file in QUERY_STRING following the scriptname.
This is a simple inline animation script written in Perl. Just edit it to replace the various gif filenames which are the different &"frames&" of your animation.