开发者

jquery popup image

开发者 https://www.devze.com 2022-12-29 03:08 出处:网络
I am looking for j开发者_运维百科query script of popping up an image onmouseover.. i did this using javascript but it is not browser supportive.. so looking for jquery script..

I am looking for j开发者_运维百科query script of popping up an image onmouseover.. i did this using javascript but it is not browser supportive.. so looking for jquery script.. Thanks


use hover

$("#hoverable_container").hover(
    function(){
        $("#imageid").show();
    },
    function(){
        $("#imageid").hide();
    }
);


jQuery's hover method works well for this, but that's already been answered. I'd recommend using the HoverIntent plugin instead, though, as this won't cause issues such as this. The only diference between the two is the overhead to load the HoverIntent plugin and calling the method as:

$("#hoverable_container").hoverIntent(
    // functions here
);
0

精彩评论

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