hello all,
i want in jcarousel to show a kind of counter to show the slide like the title above:
i found this script in internet but doesnt work,
can anyone help me????
[code=php]
function display(s) {
$(‘#display’).html(s);
};
function mycarousel_itemFirstInCallback(carousel, item, idx, state) {
display( idx +”<i> of </i>”+ mycarousel_itemList.length);
};
jQuery(document).ready(function() {
jQuery(‘#mycarousel’).jcarousel({
size: mycarousel_itemList.length,
wrap: ‘last’,
itemFirstInCallback:mycarousel_itemFirstInCallback,
itemLoadCallback: {onBeforeAnimation:
mycarousel_itemLoadCallback}
});
});
this code i pasted in the html part and i created of course the div with “display” id in the html part.
please helpppp