jQuery Cycle replay


/ Published in: jQuery
Save to your folder(s)

There's got to be a better way?


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. $(function() { $('#slides').cycle({
  3. timeout: 6000,
  4. speed: 2500,
  5. delay: -2000,
  6. autostop: 1,
  7. end: function() {
  8. $('#replay').click(function () {
  9. $('#slides').cycle({
  10. timeout: 6000,
  11. speed: 2500,
  12. delay: -2000,
  13. autostop: 1
  14. });//end #slides
  15. });//end #replay
  16. }//end end
  17.  
  18. }); });
  19. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.