Multiple Jquery Cycle Slideshows with their own Navs

Posted by daveredfern on Stack Overflow See other posts from Stack Overflow or by daveredfern
Published on 2010-01-27T12:13:25Z Indexed on 2010/04/23 8:53 UTC
Read the original article Hit count: 375

Filed under:
|
|
|

Hello,

I am using the Jquery cycle plugin (http://malsup.com/jquery/cycle/) on a blog listing page. There are multiple slideshows which work fine but I'd like each on the have their own previous and next.

Because these are blog posts it is difficult to sign unique IDs or classes. I currently have:-

    $('.article .gallery').cycle({
 next: '.viewmore .left',
 prev: '.viewmore .right',
timeout:0
});

I have tried the following but doesn't work. It gives you a better idea of what I am looking for:-

 $('.article .gallery').cycle({
 next: $(this).next('.viewmore .left'),
 prev: $(this).next('.viewmore .right'),
timeout:0
});

Can anyone help me? Thanks in advance.

Dave.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about cycle