i made it, here is the code if someone is interested: 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} }); }); then include the div with "display" id in the html part On Mar 31, 1:14 pm, tetrix <[EMAIL PROTECTED]> wrote: > it's like the function > here:http://www.designis-fine.com/projects/logos--marks/ > > On 31 mar, 12:27, tetrix <[EMAIL PROTECTED]> wrote: > > > hello; > > i need to make a function: it should get the length of an array then > > everytime i click next it should increase its count until the length > > array ends. the next and prev hits would be placed just under this 1 > > of 10 counter. > > can anyone guide me on how to do this? i checked the Cycle plugin wich > > as this function but it's a bit too hard for me now to extract it...