> I'm working on a "before" callback function and I'd like to access the
> current slide index. I'd like to know what slide "number" is coming
> up. As the new slide is called, I want to add a class to the
> corresponding pager element so it appears "active." Make sense?

The Cycle Plugin does this for you.  The active pager element will
have an "activeSlide" class assigned to it.  If you want to roll your
own then you can get the index like this:

function onBefore() {
    var index = $(this).index();
    // update controls...
}

Mike

Reply via email to