Guest User

Untitled

a guest
Jun 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <script type="text/javascript">
  2. //<![CDATA[
  3. function mycarousel_initCallback(carousel)
  4. {
  5. // Disable autoscrolling if the user clicks the prev or next button.
  6. carousel.buttonNext.bind('click', function() {
  7. carousel.startAuto(0);
  8. });
  9.  
  10. carousel.buttonPrev.bind('click', function() {
  11. carousel.startAuto(0);
  12. });
  13.  
  14. // Pause autoscrolling if the user moves with the cursor over the clip.
  15. carousel.clip.hover(function() {
  16. carousel.stopAuto();
  17. }, function() {
  18. carousel.startAuto();
  19. });
  20. };
  21.  
  22. jQuery(document).ready(function() {
  23. jQuery('#mycarousel').jcarousel({
  24. auto: 0.5,
  25. wrap: 'both',
  26. scroll: 1,
  27. animation: 4000,
  28. initCallback: mycarousel_initCallback
  29. });
  30. });
  31. //]]>
  32. </script>
Add Comment
Please, Sign In to add comment