javascript - JQuery, Starting a function again. . . . ? animation-queue -


ok here's main function:

function updown(){   var bottom = $(document).height()-$(window).height();   //scroll bottom. scroll 0. , execute updown().   $('body')     .animate({scrolltop:bottom},20000)     .animate({scrolltop:0},2000,updown); } updown(); 

then i'm using:

$('body').stop(true); 

on button click stop animation-queue

my question how start animation queue again? example $('body').play(true); if i'm saying (though know not simple lol). . .

thank in advance @ all!

have tried calling updown() again?


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -