[jQuery] Is there a way to call scroll from outside jQuery.?
Thank for this great plugin.
I have one problem. I have created two carousels fetching images with
Ajax, on the same page.
First carousel displays and scrolls only one image each scroll.
The second carousel displays and scrolls 4 images each scroll. This
carousel is supposed to be a thumbnail list previewing the images to
come in the first carousel.
What I would like is, when I click on say image 4 in the second
carousel, I would like the first carousel to scroll to that index. I
have managed to make the links out of these images, but I would want
something like, onclick=scrollto(4)
and then function scrollto(i){
carousel.scroll(i); // So I want this to be my first carousel.
}
Is there a way to do this? How do I acquire the created carousel
object within the scrollto function?
I've spent so much time on this and I'm so hoping that someone can
help me.