To make Duke show up in your browser you should add an applet tag to your document and copy the ImageLoop class into your document directory. You can also use the ImageLoop applet to display other interesting animations.
The frames you wish to display must be named "T1.gif", T2.gif", etc. and placed in the directory you specify in the applet parameters. Here are the frames from this example.