Hi all,

after 8 seconds my items scroll, when I click next after 7 secs I need
to wait another 8 seconds before autoscroll(good)

after 7 seconds when I click on my .jcarousel page links 1 second
later my page scrolls again(not what i want)

hope this makes sense.

Can anyone help/point me in the right direction?


gemmes


Main Code:

<script type="text/javascript">
/**
 * We use the initCallback callback
 * to assign functionality to the controls
 */
function mycarousel_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

    jQuery('.jcarousel-scroll select').bind('change', function() {
        carousel.options.scroll = jQuery.jcarousel.intval(this.options
[this.selectedIndex].value);
        return false;
    });

    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,
        auto: 8,
        animation: 1000,
        wrap: "last",
        initCallback: mycarousel_initCallback,

    });
});

</script>

Reply via email to