since i got no replies, i just spent more time....I modified the multizoom.js as below and was able to have it behave - somewhat - the way I need: It does not show first small image onload. Then when I click on a thumb it shows small size image for zoom, click it again it will hide. But the first thumb does not bring up small image the first click. I need to click other ones first and then the first one will work. Could not figure it out.
two things I did
1. add css to hide targetarea, 2.modified portion of multizoom.js as follows
Code:
$thumbs.click(function(){
if(!$(this).hasClass('activethumb'))
{
$(".targetarea").show();
$(".zoomtracker").show();
$(".magnifyarea").show();
$("#description").show();
$zoomlev.html(options.zoomrange? options.zoomrange[0] : '');
}
else
{
$(".targetarea").toggle();
$(".zoomtracker").toggle();
$("#description").toggle();
}
})
.addmultizoom($.extend(options, {imgObj: sel, multizoom: null, selclass: selclass}));
return this;
anyone has a better way to do it, or knows how to make the 1st thumb work the first time?
Bookmarks