jQuery detect current thumb and scroll jCarousel accordingly

Posted by steve on Stack Overflow See other posts from Stack Overflow or by steve
Published on 2010-04-26T03:21:52Z Indexed on 2010/04/26 3:23 UTC
Read the original article Hit count: 406

Filed under:
|

Another thanks to SLaks for helping me get the code this far.

I'm not quite sure if my last step is even possible with the way I have things set up.

A live version of the gallery can be seen here: http://www.studioimbrue.com/index2.php

Currently, everything works appropriately. The image and its thumbnail are currently tied together, but the jCarousel itself is still independent. I've added nextThumb.closest('.thumbscontainer').jcarousel('next'); so that when you click the large image, the carousel scrolls to the next row, but that doesn't actually follow any logic. What I'm attempting to do is for jQuery to detect how far down the thumbnail is and when to appropriately scroll the carousel. Is this even possible?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jcarousel