Mike,
I figured out a solution. I just needed to create the proper scope to
index in.
index = $(".spot div").index(this); where ".spot" is a container for
the slides and each slide is in a div.
Thanks.
> 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
Thanks
I'm building a player with a pager and I'm having some trouble - my
javascript ability is intermediate so I'm hoping someone can lend some
advice.
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
3 matches
Mail list logo