November 2011
Intermediate to advanced
348 pages
7h 2m
English
In this recipe, we'll create a really neat image magnifier by cropping out a section of a large image based on the mouse coordinates of a small image and then displaying the result on top of the small image.

Follow these steps to create an image magnifier that renders a magnified portion of an image when the user mouses over it:
Events class:<script src="events.js"> </script>
<script> /* * loads the images and then calls the callback function * with a hash of image objects ...
Read now
Unlock full access