Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery slideshow only show images with same class

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #39108
    trace
    Member

    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 !
    /trace

    jquery

    $(function() {
    $('ul#slides').before('').cycle({
    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';
    }
    });
    });

    HTML









Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.