Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Take a look at this new demo: <a href="http://roadrash.no/hs-support/gallery-in-page-with-large-imagelink-in-caption-and-additional-link.html" rel="nofollow">http://roadrash.no/hs-support/gallery-in-page-with-large-imagelink-in-caption-and-additional-link.html</a> This is a modification of the <a href="http://www.roadrash.no/hs-support/gallery-in-page-with-large-imagelink-in-caption.html" rel="nofollow">demo</a> you already are using. <br /><br />Replace this in the old demo:</p> <pre><code>// Inserting link to large image in caption hs.Expander.prototype.onAfterGetCaption = function(sender) { if (sender.caption) { sender.caption.innerHTML += '&lt;br /&gt;&lt;a href="' + sender.content.src + '" class="highslide" onclick="return stopSlideshowAndExpand(this, largeImage)"&gt;View large image&lt;/a&gt;'; } }; </code></pre> <p>With this:</p> <pre><code>// Inserting link to large image and additional link in the caption hs.Expander.prototype.onAfterGetCaption = function(sender) { if (sender.caption) { sender.caption.innerHTML += '&lt;br /&gt;&lt;a href="' + sender.content.src + '" class="highslide" onclick="return stopSlideshowAndExpand(this, largeImage)"&gt;View large image&lt;/a&gt;&lt;br /&gt;&lt;a href="' + this.custom.url + '" class="highslide" target="_blank"&gt;&lt;span style="font-size: 12px; font-style: italic;"&gt;Go to ' + this.custom.linktext + ' &lt;/span&gt;&lt;span style="font-size: 7px; font-style: italic;"&gt;(opens in new tab)&lt;/span&gt;&lt;/a&gt;'; } }; </code></pre> <p>The HTML markup of the image in the new demo looks like this:</p> <pre><code>&lt;a class='highslide' href='images/016.large.jpg' onclick="return hs.expand(this, inPageOptions, {url: 'http://highslide.com/ref/', linktext: 'Highslide API reference page'} )"&gt; &lt;img src='images/016.smallthumb.jpg' alt='Autumn leaves'/&gt; &lt;/a&gt; </code></pre> <p>Replace the content of <code>url</code> and <code>linktext</code> with your own url and text.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload