Reread all of step3 on the demo page, it explains how, by passing the dimensions of the larger image to the enlarge() function and using the 'center' parameter, you can have the larger image appear centered on the page rather than originate at the mouse pointer.
In other words, use this method:
Code:
onClick="return enlarge('lemoncake.jpg',event,'center',300,375)"
where 300 is the width and 375 the height of the larger image, instead of this method where no information of that sort is used:
Code:
onClick="return enlarge('photo1.jpg',event)"
Bookmarks