开发者

Make jqZoom Evolution's zoom box follow my mouse cursor

开发者 https://www.devze.com 2023-04-09 09:11 出处:网络
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 imag

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.


its not following your cursor? but the 1st demo is showing zoom as you move your mouse http://www.mind-projects.it/projects/jqzoom/demos.php#demo1

Edit

not exactly a solution but an alternative plugin which provides mouseover zoom out-of-box

http://redeyeoperations.com/plugins/zoomy/

0

精彩评论

暂无评论...
验证码 换一张
取 消