Guest User

Untitled

a guest
Jan 16th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. $(document).ready(function() {
  2. $('#gallery').cycle({
  3. fx: 'fade',
  4. timeout: 3000,
  5. speed: 500,
  6. autostop: 0,
  7. end: function(options) {
  8. $('#gallery').cycle('stop');
  9. }
  10. });
  11. });
  12.  
  13. $(document).ready(function() {
  14. $('#gallery').cycle({
  15. fx: 'fade',
  16. timeout: 3000,
  17. speed: 500,
  18. autostop: 1 // Stop slideshow at end
  19. });
  20.  
  21. $('a#pause_resume_button').click(function() {
  22. $('#gallery').cycle('toggle');
  23. });
  24. });
  25.  
  26. $('#scroller').cycle({
  27. fx: 'fade',
  28. timeout: 3000,
  29. speed: 500,
  30. autostop: 1,
  31. end: function(options) {
  32. $('#gallery').cycle('stop');
  33. alert('finished');
  34. }
  35. });
  36.  
  37. autostop: 0, // true to end slideshow after X transitions (where X == slide count)
  38.  
  39. $('#slideshow').cycle('resume');
Add Comment
Please, Sign In to add comment