JQUERY CYCLE - Can I add page links to anchors assigned to Cycle's pager?

Posted by christianDuncan on Stack Overflow See other posts from Stack Overflow or by christianDuncan
Published on 2010-03-05T11:18:12Z Indexed on 2010/03/31 0:33 UTC
Read the original article Hit count: 443

Filed under:
|
|
|

Hello everyone.

Seems I've outdone myself. All the while I was creating this pretty little 'latest news' widget that fades on mouseover of each anchor. Then my colleague says, "Hey, Chris, these links don't work"

...oops. I would like to find out if I can have these anchors take the user to the relvent page on click. Currently Cycle is set to do its hocus pocus on mouseover.

This is my Cycle code:

$('#newsSlider .slides ul').cycle({
    fx:     'fade',
    speed:  1000,
    timeout: 0,
    pager:  '.slides-nav',
    pagerEvent: 'mouseover',
    pagerAnchorBuilder: function(idx, slide) {
        // return sel string for existing anchor
        return '.slides-nav li:eq(' + (idx) + ') a';
    }

And here is the dev site:

http://slg-development.co.uk/Gradient_12859/

Any help would be hugely appriciated. Thanks everyone!

Christian

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about cycle