StealthRT
04-08-2009, 03:55 AM
Hey all i need help modifying my code below in order to have my carousel automatically continue when it reaches the end. The code works just fine as-is but it goes back to the first image after it ends... I do not really want that, i just want it to continue without going back.
function mycarousel_initCallback(carousel)
{
carousel.clip.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
auto: 3,
//wrap: 'circular',
wrap: 'last',
initCallback: mycarousel_initCallback
});
);
ex:
image1 -> image2 -> image3 -> image4 -> image1 -> image2...
INSTEAD OF DOING THIS:
image1 -> image2 -> image3 -> image4 -> loops back to image1 <-
I do not know how to add both "last" and "circular" to the wrap properties.
The website is here for the jCarousel: http://sorgalla.com/jcarousel/
Any help would be great!
David
function mycarousel_initCallback(carousel)
{
carousel.clip.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
auto: 3,
//wrap: 'circular',
wrap: 'last',
initCallback: mycarousel_initCallback
});
);
ex:
image1 -> image2 -> image3 -> image4 -> image1 -> image2...
INSTEAD OF DOING THIS:
image1 -> image2 -> image3 -> image4 -> loops back to image1 <-
I do not know how to add both "last" and "circular" to the wrap properties.
The website is here for the jCarousel: http://sorgalla.com/jcarousel/
Any help would be great!
David