magostoni schrieb:
> Hi,
> I begin to use jcarousel now, and I think it is verey very well maked.
> I am not so expert in js so I have a need:
>
> I have to external control for next and prevoius button and they
> scroll fine. I want to take count of next and previous so I think to a
> variable that take currPage + 1 for next and currPage - 1 for previous
> to use it to make visible on the page an object based on what page I
> am visiting in that moment. I hope to make you understand.
> I think I have to put this in the jcarousel class and initialize it,
> but I don't know exactly where.
> [...]
> If you can give me some help,
>
> With thanks.
you can get the current page like that:
jQuery('#mycarousel-next').bind('click', function() {
carousel.next();
// "3" is number of visible items
var currPage = ((carousel.first - 1) / 3) + 1;
makevisible('vedi'+ currPage)
return false;
});
Jan