//index.php jQuery(document).ready(function() { jQuery('#mycarousel_cd').jcarousel({ // Uncomment the following option if you want items // which are outside the visible range to be removed // from the DOM. // Useful for carousels with MANY items. //itemVisibleOutCallback: {onAfterAnimation: function(carousel, item, i, state, evt) { carousel.remove(i); }}, scroll: 5, auto: 0, wrap: 'last', animation: 1000, itemLoadCallback: mycarousel_itemLoadCallback_cd }); }); jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel({ // Uncomment the following option if you want items // which are outside the visible range to be removed // from the DOM. // Useful for carousels with MANY items. //itemVisibleOutCallback: {onAfterAnimation: function(carousel, item, i, state, evt) { carousel.remove(i); }}, scroll: 5, auto: 5, wrap: 'last', animation: 1000, itemLoadCallback: mycarousel_itemLoadCallback }); });