[jQuery] Cycle plugin: using two #next controllers

2008-11-21 Thread Garreth


Hi!


Im trying to build a gallery using the wonderful cycle plugin. Everything
works fine, Im just wondering if it is possible to use to next intances? One
next controller on the image, and another one on a link (http://www.nabble.com/Cycle-plugin%3A-using-two--next-controllers-tp20628984s27240p20628984.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Cycle plugin: using two #next controllers

2008-11-21 Thread Garreth

Hi.

Im trying build a gallery using the wonderful jquery cycle plugin.
Everything works fine, Im just wondering if it is possible to use two
next controllers. One next controller on image-click, and one using a
link  ( )

I can use them one at a time, but when I try them together only one of
them works: Here is my code:

$('#slideshow').cycle({
fx: 'fade',
speed:  '2000',
timeout: 0,
pager:  '#nav',
next:'#slideshow', // Change the image when user clicks on image
next:'#next', // Change the image when user clicks on the next 
link
prev:'#previous',
pagerAnchorBuilder: function(idx, slide) {
// return selector string for existing anchor
return '#nav li:eq(' + idx + ') a';
}
});

Is there some way to do this, or do I have to duplicate the next code,
inside the plugin script, to achieve this?

Regards