coolispaul
asked on
jCarousel Pagination
Hi,
does anyone know how to get the total number of items in jCarousel
I am trying to create a 1 of 7 , 2 of 7 pagination so the users know what slide they are on.
Thanks
does anyone know how to get the total number of items in jCarousel
I am trying to create a 1 of 7 , 2 of 7 pagination so the users know what slide they are on.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No, I don't know, sorry.
ASKER
I tried the following without much luck:
jQuery('#mycarousel2').jca
wrap: 'circular',
scroll:1,
itemLoadCallback: trigger
});
function trigger(carousel, state) {
var total_number = $("#mycarousel2 .jcarousel-item").length;
if(carousel.first > total_number) { $("#counter").html(1); } else { $("#counter").html(carouse
}