Hi Doze and Sottwell, thanks for the answers.
Doze is describing exactly what I am trying to do.
The problem is that I tried changing the JS for Slimbox from this:
[+maxigallery.embedtype:is=`slimbox`:then=`
<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
`+]
(..)
[+maxigallery.embedtype:is=``:then=`
<a href="[+maxigallery.picture_link_url+]">
`+]
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
</a>
</li>
`+]
to something like this:
[+maxigallery.embedtype:is=`slimbox`:then=`
<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
`+]
(..)
[+maxigallery.embedtype:is=``:then=`
<a href="[+maxigallery.picture_link_url+]">
`+]
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
</a>
</li>
<div id="infoText">
<p>[+maxigallery.picture.title:htmlent+]</p>
<p>[+maxigallery.picture.descr:htmlent+]</p>
</div>
`+]
The problem then is that I get an output from each image all at once, which of course isn’t what I want.
I just realized that maybe a solution could be a combination of both of your answers.
Maybe something like
[+maxigallery.embedtype:is=`slimbox`:then=`
<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
`+]
(..)
[+maxigallery.embedtype:is=``:then=`
<a href="[+maxigallery.picture_link_url+]">
`+]
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
<span class="infoText">[+maxigallery.picture.title:htmlent+]<br />
[+maxigallery.picture.descr:htmlent+]</span>
</a>
</li>
`+]
and then the css:
a span.infoText {
display:none;
a span.infoText:active {
display: block
}
would work..
I’m gonna try it out later tonight
Thanks, larsb