Hi

This question has been asked several times in various places online,
but the solution that's usually given isn't working for me.

I want to show the slide titles (rather than just numbers) in the
pager, so am calling it like this:

jQuery(document).ready(function() {
        jQuery('#cycle-pics').cycle({
                speed:1000,
                timeout:3000,
                next:'#next',
                prev:'#prev',
                pager:'#cycle-numbers',
                pagerAnchorBuilder: function(idx, slide) {
                        return '<a href="#">'+(idx+1)+' '+ slide.title +'</a>';
                }
        });

        jQuery('#pause').click(function() {
                jQuery('#cycle-pics').cycle('pause');
        });

        jQuery('#play').click(function() {
                jQuery('#cycle-pics').cycle('resume', true);
        });

});

The pagerAnchorBuilder function is correctly showing the slide
numbers, but not the titles.

Does anyone have any suggestions why this code isn't working? (I'm
using jQuery 1.3.2 and Cycle 2.71).

Thanks!

Reply via email to