//这是JS里的代码MOMO.js
因为刚学封装JQUERY插件 所以就做的稍微麻烦一点,其实在前台页面直接就可以用mouSEOver,mouSEOut,mousemove三个事件就行了
"
$("body").append(tooltip);
$("#tooltip").css({ "top": (e.pageY + y) + "px","left": (e.pageX + x) + "px" }).show('fast');
},"titleOut": function () {
this[0].title = this[0].myTitle;
$("#tooltip").remove();
},"titleMove": function (e) {
$("#tooltip").css({ "top": (e.pageY + y) + "px","left": (e.pageX + x) + "px" });
}
});
//默认鼠标坐标
var x = 10;
var y = 20;
})(window.jQuery);