Hi, thanks for the reply.
I’ve tried my best with what you gave me, but I’m as stuck as can be.
This is basically what I have:
mgGalleryPicture (chunk)
<li>
<a href="javascript:void(0);"
onClick="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+]);return
false;">
<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>
</li>
mgJs (chunk)
<script type="text/javascript">
//<![CDATA[
function showPic(url,title,descr,width,height) {
$("#maxImage").fadeOut("fast", function(){
$("#maxImage").attr({
src: url,
width: width,
height: height
});
$(this).fadeIn("fast");
});
$("#maxTitle").html(title);
$("#maxDescr").html(descr);
}
//]]>
</script>
mgPicture (chunk)
<img id="maxImage[+maxigallery.picnumber+]" src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" alt="[+maxigallery.picture.title:htmlent+]" title="Click for full size" />
[[Wayfinder?&startId=`24`&outerTpl=`portfolionavtpl`&level=1]]
[+maxigallery.picture_link_url+]
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$("#maxImage").onclick();
});
//]]>
</script>
I’ve also called the Jquery library in the head (output is
<script type="text/javascript" src="http://localhost/henryhoffman/assets/js/jquery-1.2.6.min.js"></script>)
Any ideas? This is the first time I’ve used JQuery so there’s undoubtedly something appallingly easy that I’ve missed.
Many thanks.