Using that function that i wrote do something like this: a global var like : var timer; then modify the function making the setInterval function receive it: timer= setInterval(...)
then bind the click of the stop blink button to clear the setInterval : $('#stop_blink').click(function(){ clearInterval(timer); }); Glad i could help :) 2009/6/6 kranthi <kranthi...@gmail.com> > > use setTimeout clearTimeout combo. > > var timer; > function func() { > $("a.tm_link").fadeOut("slow").fadeIn("slow"); > setTimeout("func()", 5*1000) > } > > onclick > > clearTimeout(timer); > -- Gustavo Salome Silva