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;
};
Try this
jQuery('#mycarousel').jcarousel({
visible: 3
});
Need to change both width of container & clip; & increase item numbers by visible: 10
JS
jQuery('#mycarousel').jcarousel({
visible: 10
});
CSS
.jcarousel-skin-ie7 .jcarousel-container-horizontal
{
width:750px;
}
.jcarousel-skin-ie7 .jcarousel-clip-horizontal {
width:740px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With