javascript - How to repeat or loop this queue on jQuery? -


This is a fade code for slide show. Is there any way to repeat or loop this line? To resume on this top code $ ("# page2_image") Hide ();

Here's the code in jQuery:

  $ $ ("# Page2_image"). $ ("# Page2_image") Hide (); $ ("# Page3_image") Hide (); $ ("# Page1_image"). FadeOut (10000); $ ("# Page 2_English"). Fadein (10000) .Fedaut (10000); $ ("# Page 3_image"). Delay (10000) FadeIn (10000);});  

Thank you for your help!

You can use it to fadeIn () callback

  $ (document) .ready (function () {function loop () {$ ("# page2_image"). Hide (); $ ("# Page3_image"). ($ #) "$ $ Feeds (10000); $ ("# Page 3_image") .delay (10000). FadeIn (10000) FadeIn (10000); $ ("# Page 1_image") Feeds (10000); $ ("# Page2_image"). , Loop); // call loop here ...} loop ();});  

You can also try a similar approach


Comments