This issue is the Drupal 6 counterpart to http://drupal.org/node/1123562, in which you give some Javascript snippets that advance to the next (and I assume previous) image. Could you tell me what the syntax would be in Drupal 6? It's a bit of a dealbreaker for me and I really want to use this wonderful module.
Thanks!

Comments

manuel garcia’s picture

Status: Active » Closed (fixed)

In d6 the module doesn’t have prev & next buttons so you'd have to use a jquery selector logic to get to the next thumbnail to click:

$(".gallery-thumbs li.active").next().find('a').trigger('click'); // Next image
$(".gallery-thumbs li.active").prev().find('a').trigger('click'); // Previous image

The above code should work, only it won't start at the beginning if it's the last one...

mikhail’s picture

beutifull module! Where should i insert this code above to make the function of next/previous image possible?