开发者

jquery popup image

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜