torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

How do I open a gallery from a text link or an image link?

You can set this up using the Editor. Go to Gallery => Behaviour => Advanced => Visible thumbnails => None - open from link.

Or, to set it up manually, put all the thumbnails in a hidden container, using display: none. Then instead of opening the first thumbnail directly, create a link that virtually clicks the first thumbnail:

Code: Select all

<a id="opener" href="javascript:;" onclick="return document.getElementById('gallery').onclick()">Open gallery</a>
See this live at http://www.highslide.com/examples/mini- ... -link.html , and study the source code for details.
Torstein Hønsi
CTO, Founder
Highsoft
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: How do I open a gallery from a text link or an image link?

The same procedure can be used to open the gallery from a thumbnail elsewhere on the page:

Code: Select all

<a id="opener" href="javascript:;" onclick="return document.getElementById('gallery').onclick()"><img src="your-thumbnail.jpg" alt="" /></a>
In the Editor, the equivalent option is under the Gallery tab. Go to "Behaviour" box => "Advanced" button => set "Visible thumbnails" to "None - open from link".
Torstein Hønsi
CTO, Founder
Highsoft

Return to “Highslide FAQ”