Hi,
I'm using the cycle plugin (and loving it).  I'm using
'pagerAnchorBuilder' to build out the nav dynamically in an Ordered
List.  One thing I'd like to change is instead of having the
'activeSlide' class set on the anchor element, I'd prefer to have it
set on its parent LI element.

What would be the most elegant way to achieve this?  Your help is
appreciated - thanks!

(below is the code I'm using)...

$(document).ready(function(){
        $('#slides').after('<div id="navSlides"><ol>').cycle({
                cleartype: 1,
                fx: 'fade',
                pager: '#navSlides ol',
                pagerAnchorBuilder: function(idx, slide) {
                        if (idx == 0) {
                                return '<li class="first"><a href="#">' + (idx 
+ 1) + '</a></li>';
                        }
                        else {
                                return '<li><a href="#">' + (idx + 1) + 
'</a></li>';
                        }
                }
        });
});

Reply via email to