Re: Replace Image Machine closeup with ColorBox or other Lightbox?
If the thumbnail list isn't created then maybe something didn't get copied correctly in the Product Display Layout Image Machine head template. Here is the whole script:
If the thumbnail list isn't created then maybe something didn't get copied correctly in the Product Display Layout Image Machine head template. Here is the whole script:
Code:
<script> ImageMachine.prototype.ImageMachine_Generate_Thumbnail = function( thumbnail_image, main_image, closeup_image, type_code ) { var thumbnail, span, img; thumbnail = document.createElement( 'li' ); span = document.createElement( 'span' ); // to vertically center the thumbnail images thumbnail.appendChild( span ); if ( typeof( thumbnail_image ) == 'string' && thumbnail_image.length > 0 ) { img = document.createElement( 'img' ); img.src = thumbnail_image; thumbnail.appendChild( img ); } return thumbnail; } window.onload = function () { $("ul.thumbnails li:first").addClass("thumb_active"); $("ul.thumbnails li").click(function() { $(this).siblings().removeClass('thumb_active'); $(this).addClass("thumb_active"); }); } </script>
Comment