0
我正在使用此代码使title = ""
看起来更好。某些东西已被POST后使用功能
this.vtip = function() {
this.xOffset = -10;
this.yOffset = 10;
$(".vtip").unbind().hover(function (a) {
this.t = this.title;
this.title = "";
this.top = (a.pageY + yOffset);
this.left = (a.pageX + xOffset);
$("body").append('<p id="vtip">' + this.t + "</p>");
$("p#vtip").css("top", this.top + "px").css("left", this.left + "px").fadeIn("slow")
}, function() {
this.title = this.t;
$("p#vtip").fadeOut("slow").remove()
}).mousemove(function (a) {
this.top = (a.pageY + yOffset);
this.left = (a.pageX + xOffset);
$("p#vtip").css("top", this.top + "px").css("left", this.left + "px")
})
};
jQuery(document).ready(function (a) {
vtip()
});
不过,我已经在页面上发了一个帖子请求后,该功能不会使title = ""
的更好看,他们只是看默认。
我的问题确实是,如何让上面的代码在内容被动态加载到页面后工作?
非常感谢!有效 :) – Frank 2012-03-03 18:58:00