events - Jquery Problem for stopping the loop -


I have found this jquery code and it has some sort of slide show with the fading effect, then it loop ... it The first code is

  $ (document) .ready (function () {function looptour () {$ ("# health"). Hide (); $ ("#Billing"). ( $ ($ #) "$" ("# Pension"). Delay (6000). Fadeaut (2000); $ ("# Health"). Delay (6000) .Fedine (2000). Dele (6000) .Fedaut (2000) ; $ ("#Billing"). Delayed (14000). Fade In (2000) .day (6000) .Fedaut (2000); $ ("#pensions"). Delay (14000) .Fed in (2000, looptor) ;} Looptor ();});  

My problem is how to stop the loop you click on the first code? After clicking on that event a new loop will proceed and on this ...

Here is the new code,

  $ ("# tournums"). $ ("$ {" ("# Health") {$ ("# Health"). ($ #) "$" ("#pensions"). Hide (); $ ("#Billing"). (6000) .Fedaut (2000); $ ("#pensions"). Delay (6000). Fadein (2000) .Dale (6000) .Fedaut (2000); $ ("# health"). Delay (14000). Fadein (2000) .day (6000). Feedout (2000); $ ("# billing"). Delay (14000) .Fedine (2000, looptor);} BillingLog ();});  

Thank you very much for helping me with this problem.

My most Ach The hypothesis is that its use:

  function stoplops () {$ ("#pensions"). Clear (); $ ("# health") clearQueue (). $ $ (" $ ("#pensions"). $ ("#papers"). ("#papers"). (), $ ("#Billing"). Delay (6000). Fadeaut (2000); $ ("#pensions"). Delay (6000). Fadein (2000) .Dale (6000) .Fedaut (2000); $ ("#Helth"). Delay (14000) .Fedine (2000). Delay (6000). Fadeaut (2000); $ ("#Billing"). Delay (14000) .Fedine (2000, LoopTor);} BillingLog ();});  

Comments