Setting number of visible images in jCarousel

Thomas picture Thomas · Aug 19, 2011 · Viewed 14.5k times · Source

I integrated jCarousel into my asp.net page but it's always showing only 3 images at a time. If I need to show 10 images at a time, then what should I change in the code?

Here is my little snippet:

jQuery(document).ready(function () {
    jQuery('#mycarousel').jcarousel({
        size:5,
        itemLoadCallback: mycarousel_itemLoadCallback
    });
});

function mycarousel_getItemHTML(mother) {
    var item = "<div>";
    item += "<img src='" + mother.Image + "' width='75' height='75' />";
    item += "</div>";
    item += "<div>" + mother.Title + "</div>";
    return item;
};

Answer

Coomie picture Coomie · Aug 24, 2011

Try this

jQuery('#mycarousel').jcarousel({
    visible: 3
});