I'm using the jCarousel script (http://sorgalla.com/jcarousel/) and I'm wondering if anyone knows of a way to dynamically set specific configuration settings based on how many items are in the carousel? For example, I'd like this to happen if there are four or less items in the carousel:
$().ready(function() {
$('#sixMR').jcarousel({
animation: 'slow',
scroll: 1
});
});
But I'd need this if there are five or more items:
$().ready(function() {
$('#sixMR').jcarousel({
animation: 'slow',
scroll: 1,
wrap: 'circular'
});
});