I'm using the jQuery plugin Cloud Zoom, and I've altered the initialization so that the image is zoomed when the user clicks on a "magnify button" instead of hovering. I'm not sure how to unset/remove this event when the user leaves the image though, and I'd be very interested to hear what the best practice would be.
This is what the script looks like -
$('.magnify').click(function() {
$('.cloud-zoom').CloudZoom({ showTitle: false });
return false;
});
$('.display').mouseout(function() {
// unset?
});
(".display" is a container) Is bind/unbind necessary? It seems it might do the trick, but I wish there was an easier method since it's just about one function.