Treehouse: Grow your CSS skills. Land your dream job.

jquery slideshow only show images with same class

  • # July 27, 2012 at 11:28 pm

    I am a query newbie using the jquery cycle plugin w/ pager.
    I am trying to get the next/prev arrows to only page through items with an li class of image, skipping the items with a header class.

    I am sure it is a pretty simple thing to do, but i am stuck as where to begin, any help is appreciate !


    $(function() {
    fx: 'fade',
    speed: 'slow',
    timeout: 0,
    next: '#next2',
    prev: '#prev2',
    pager: '#menu',
    pagerAnchorBuilder: function(idx, slide) {
    // return selector string for existing anchor
    return '#menu li:eq(' + idx + ') a';


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.