there are a bunch of plugins like this , just search for wait, pause, or delay and you should find one that is much more complete then your code you have.
On Jul 10, 11:34 am, Many <martin.clav...@gmail.com> wrote: > Why not a plugin like (small correction void should be a string) > > $.fn.delay = function(delay){ > if(typeof delay==="undefined") delay = 1000; > return this.animate({"void":0}, delay); > > } > > This way you can call it like this > > $('#element').delay().effect('pulsate');