Home:ALL Converter>Make jqZoom Evolution's zoom box follow my mouse cursor

Make jqZoom Evolution's zoom box follow my mouse cursor

Ask Time:2011-09-29T13:00:12         Author:Odyss3us

Json Formatter

I am using jqZoom Evolution to implement zoom functionality on my site, the problem is that it does not have the functionality for the zoom box to follow my mouse pointer around as I hover over a image, I have tried using mousemove to make it follow the cursor around, but every time I resize the browser the box moves further away from the cursor,

    $("#single_main_container").mousemove(function(e){

        $(".zoomWindow").css({
            top: e.pageY,
            left: e.pageX
        });

    });

so basically I just need the zoom box to follow my mouse cursor around when I hover over the image.

Author:Odyss3us,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/7592637/make-jqzoom-evolutions-zoom-box-follow-my-mouse-cursor
yy