stop // fast // slow // really fast

This example demonstrates repeating actions/functions periodically. Also uses innerHTML to change the contents of a div.

See Javascript Timing Events for some general help and reference...

I'm a moving div!

This JS written by Don Sinclair.