I presume that it has click() event somehow hardcoded in it and when i click thumbs the plugin scrolls it to center position. Then I've bound another click event, so that I can display large image. It works similar to the example in the link above

Now I have to make this big image clickable, so clicking it I can proceed to next image in gallery, I did that, but now I have to make the carousel scroll automatically to the next thumb when I am clicking this big image. So, if I simplify my code, the essence is still smth like that:

where #idone is a thumb in the gallery, #idtwo is that preview image. I dont know what function is bound to click by default. Another thing: my guess was that binding the same event to the same object should replace the previous - it appears not necessarily.. And I'm pretty sure that it is exactly click();, not mouseup\down etc. cause calling

$('#idone').click();

on page load does the trick and carousel scrolls to the thumb with id="idone"

just in case: jquery-1.3.2.js

thanks everyone for your answers, and excuse me my lame English, no time for brushing up (:

!UPD:

ok! so I gave up on this one )) But to close this question and put an end to this discussion i have to know. All you people, who wrote that it is possible and suggested variants. HAVE YOU TRIED THEM?! Do they really work for you? Is it me, who is wrong? And - Thanks anyway!

I guess you are trying to trigger click event on #idone from the secode click event ?
–
TinkuDec 28 '09 at 8:02

Have you? I've tried - no luck... pretty sure the synthax is correct, though
–
dr3wDec 28 '09 at 8:36

You can bind multiple events to click. I think that might be the problem. I didn't fully understand how you want the image gallery to act.
–
RamboNo5Dec 28 '09 at 9:15

@RamboNo5: when clicking on Full Preview the next image in gallery is shown. I managed to do that, but i also need corresponding gallery thumb to scroll to center, as if IT was clicked, not the full preview image. The thing is - i dont' know how to call this particular function(scrolling of the thumb to the center), because it is hardcoded somewhere in the minified source code.
–
dr3wDec 28 '09 at 9:25

$('#image_wrap img').click(function(){ // big image is clicked
// figure out the active element of the items below
$active_element = $('.scrollable .items .active');
// move along to the element to its right
$nextone = $active_element.next();
// trigger a click on this element
$nextone.trigger('click');
});

That way, when you click the big image, a click event on the next preview image in the list is triggered.
(If that element doesn't exist, jQuery is nice and does nothing - no errors.)

@RamboNo5: thnx again for your time, but i guess it just wont work =\ with this line $nextone.trigger('click'); you are trying to do exactly the thing where i'm stuck at the moment. ignoring the peculiarities the idea is the same call: click() from click() and it doesn't work for me.
–
dr3wDec 28 '09 at 13:08

but your code gave an idea for optimizing the one I already have :) so thanks a lot!
–
dr3wDec 28 '09 at 13:08