<div class="hoverthumb">
<a href="javascript:showPic('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]','[+maxigallery.picture.descr:htmlent+]',[+maxigallery.picture_width_normal+],[+maxigallery.picture_height_normal+])">
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]"
class="thumbnail" title="[+maxigallery.picture.title:htmlent+]"
alt="[+maxigallery.picture.title:htmlent+]" /></a>
</div>
<a href="javascript:void(0);" onclick="javascript:showPic('gallery-test-Dateien/lori_23.jpg','','',313,468);return
false;">
<img src="gallery-test-Dateien/tn_lori_23.jpg" class="thumbnail" title="" alt="">
</a><a href="javascript:showPic('gallery-test-Dateien/lori_21.jpg','','',439,468)">
<img src="gallery-test-Dateien/tn_lori_21.jpg" class="thumbnail" title="" alt="">
</a>
okay, it’s working if you change this part in your gallery picture template:
<a href="javascript:void(0);" onclick="javascript:showPic('gallery-test-Dateien/lori_23.jpg','','',313,468);return false;"> <img src="gallery-test-Dateien/tn_lori_23.jpg" class="thumbnail" title="" alt=""> </a>
...so that the output will be:
<a href="javascript:showPic('gallery-test-Dateien/lori_21.jpg','','',439,468)"> <img src="gallery-test-Dateien/tn_lori_21.jpg" class="thumbnail" title="" alt=""> </a>
see the template i use in the post above
doesn’t need to be in a div "hoverthumb" as in my template btw
great!!
now you can add the spinner-gif call to your css, as well as the active-state class for the thumbnails....and maybe a fixed height for your picture container, so that the prev/next-links won’t "jump" when pictures are swapped

jq('#picturecontainer').addClass('loading')#picturecontainer.loading {
background: url(path-to-your-loading-gif/loading.gif) no-repeat center center;
}