本文实例讲述了jquery悬浮提示框实现方法。分享给大家供大家参考,具体如下:
";
$("body").append(ndiv);
$("#leo").css({
"top" : (e.pageY + y) + "px",
"left" : (e.pageX + x) + "px"
}).show(2000);
$(this).mousemove(function(e) {
$("#leo").css({
"top" : (e.pageY + y) + "px",
"left" : (e.pageX + x) + "px"
}).show(1000);
});
}, function() {
this.title = otitle;
$("#leo").remove();
});
});
If you click on me, I will disappear.
If you click on me, I will disappear.
If you click on me, I will disappear.
If you click on me, I will disappear.
希望本文所述对大家jQuery程序设计有所帮助。