In Javascript html5 I want to replace a Flash animation that simply has images that appear on a set time.
For example 1 image moves across the screen after 1 sec and another moves after 2 sec and another after 10 sec..

Do I use a setInterval and calculate elapsed time before invoking another setInterval for this or is their an easier way. I