Closed (fixed)
Project:
Views Rotator
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
10 Jul 2009 at 21:16 UTC
Updated:
27 Jul 2009 at 21:40 UTC
Is it possible to jump to a specific image?
I've got two views of the same images on the same page - one is the rotator, the other is just a bunch of thumbnails.
I need to display a large version of the thumbnail in the rotator when you hover over the thumbnail.
Can I call something like $('#the_rotator').goTo(4) or something?
Comments
Comment #1
millenniumtreeI found a solution.
This little blurb, added to a .js file, does exactly what I need.
'.node-type-product-line .field-field-images img' refers to the list of images I have set up next to the views_rotator (it's just another view of the images in the rotator)
'#views-rotator-product_line_images-block_1' is my views rotator block.
The key to the whole solution is the fact that you can call .cycle() again with an integer offset after the cycle setup. I had to parseInt() the offset number - it didn't like it when I passed the string.
I hope this helps someone else. We do a lot of mouse-over thumbnail expansion/zooming, and being able to do this with rotators is pretty nifty.