Tell me, please, what should be the logic of this process. There is a page with a gallery on which the photos are simply displayed as “tiles” and increase when clicked:

<li> <a href="ссылка на 2галерею" data-largesrc="большая картинка" data-title="1146" data-description=""> <img src="маленькая картинка"/> <p class="article">1146</p> </a> </li> 

2 gallery is a more convenient viewing of huge images.

 <li> <a href="#"> <img src="миниатюра" data-large="огромная картинка" data-description="1146" /></a> </li> 

In 1 gallery, when you click on a small picture, a window opens with a large picture (ala Google), and next to it is the link "view in gallery format". And when you click this link, you need to open the 2gallery already on the picture from which the transition was made, because there are a couple of hundred photos, and look for what you want in this heap is somehow not very good. ps: I do not ask to write code instead of me, tell me, please, in what way can this be done in general.

  • It is necessary to find the vertical displacement (?) of the picture in the second gallery and set the position of the scroll to this value. - zb '
  • well, I can specify a specific scrolling offset, but you still have to open the right photo - gorakz
  • in the sense of open? in general, let's get more code. your task is not clear and in my opinion too complicated. - zb '22
  • Here is 1 gallery xvision.com.ua/main/ukrchic/vesіlnі-suknі/poskaza1 here 2 xvision.com.ua/main/ukrchic/vesіlnі-suknі/galerey-ukrshik when you click on the photo to 1, it opens up increasing copy where there is a link to go to gallery mode. And you need to make the 2 gallery open exactly on the photo from which the transition was made. ps.: sorry, that wise, just do not know where to dig even - gorakz
  • Before you click on the link, you need to remember what image was selected, you can use jStorage library for this, then on a new page you can take the name of the picture you need to open and simply call "click" on it (well, you can go there) - zb '

0