It is currently Sun Apr 20, 2014 8:23 pm Advanced search

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

Frequently asked questions.

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

Postby torstein.honsi » Thu Aug 20, 2009 11:36 am

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 Solutions
User avatar
torstein.honsi
Site Admin
 
Posts: 9181
Joined: Thu Nov 09, 2006 1:22 pm
Location: Vik i Sogn, Norway

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

Postby torstein.honsi » Fri Oct 29, 2010 8:39 am

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 Solutions
User avatar
torstein.honsi
Site Admin
 
Posts: 9181
Joined: Thu Nov 09, 2006 1:22 pm
Location: Vik i Sogn, Norway


Return to Highslide FAQ

Who is online

Users browsing this forum: No registered users and 2 guests