The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anything Zoomer: targeting coordinates? Re: Anything Zoomer: targeting coordinates?


Hi gin66!

It looks like you need to set the width and height of the small and large images using #zoom, and because the above code is targetting `$(‘.zoom’)` and the code you have sets up a window with an ID of “zoom” you’ll need to change that code to `$(‘#zoom’)`. Try this code:

.bind(‘click’, function(){
return false;
.bind(‘mouseover click’, function(){
var loc = $(this).attr(‘rel’);
if (loc && loc.indexOf(‘,’) > 0) {
loc = loc.split(‘,’);
$(‘#zoom’).anythingZoomer( loc[0], loc[1] );
return false;