jcarousel, problem at 16th click on next button
I use jCarousel, with prev/next button as image.
- function mycarousel_initCallback(carousel) {
- jQuery('#mycarousel-next').bind('click', function() {
- carousel.next();
- return false;
- });
- jQuery('#mycarousel-prev').bind('click', function() {
- carousel.prev();
- return false;
- });
- };
- // Ride the carousel...
- jQuery(document).ready(function() {
- jQuery("#mycarousel").jcarousel({
- scroll: 1,
- initCallback: mycarousel_initCallback,
- // This tells jCarousel NOT to autobuild prev/next buttons
- buttonNextHTML: null,
- buttonPrevHTML: null
- });
- });
I have 21 image (). If I start to click on next button, all is right until the 16th click. At 16th click on next button, images scrolls back of 3 images.
Any clue?
Alberto