External scrollTo link

Thank you in advance for your help with this.

I have two pages. One page with thumbnails and another page with the actual gallery.

On the gallery.html page I can scroll to my 5th image in the list by
the following code:
onclick=“myScroll.scrollToPage(5,5)”

I want to achieve this same effect from the index.html file into the
gallery.html file.

I have tried using anchored links like #image5, but that just messes
up the page and iscroll script I am working off of.

Thank you again anyone who can help.

You would need to link from the index page to the gallery page using the querystring to pass the info about which image you want to scroll to.

Then, the gallery page can check the querystring for that info, and if that info exists it can pass that info to the scrollToPage method of the myScroll object.