this.r.document.writeln("<script type=\"text/javascript\">");
this.r.document.writeln(" setTimeout('parent.BindListMenu();',5000);");
this.r.document.writeln("</script>");
function BindListMenu() {
var UserListMenuDate = new Array();
$("#r").contents().find(".list").delegate("tr", "mousemove", function () {
$(this).smartMenu(UserListMenuDate, {
name: "UserListMenu",
offsetX: 232 + $(".IceChatBody").width() + 2,
offsetY: 2,
ContainerId: "r",
beforeShow: function () {
$.smartMenu.remove();
parent.cs($(this).attr("id"));
if (parent.InAdminMode == 1) {
UserListMenuDate[0] = [ul_glgn_u];
UserListMenuDate[1] = [voicemanage];
UserListMenuDate[2] = [videomanage];
UserListMenuDate[3] = [ul_zbgn_u];
UserListMenuDate[4] = [ul_cjgn_u];
}
}
});
});
$("#r").contents().on("contextmenu", function () { $.smartMenu.remove(); return false; });
$("#u").contents().delegate("body", "click", function () { $.smartMenu.remove(); });
$("#u1").contents().delegate("body", "click", function () { $.smartMenu.remove(); });
$("#d").contents().delegate("body", "click", function () { $.smartMenu.remove(); });
$("#af").contents().delegate("body", "click", function () { $.smartMenu.remove(); });
$("#igame").contents().delegate("body", "click", function () { $.smartMenu.remove(); });
$("#igamemsg").contents().delegate("body", "click", function () { $.smartMenu.remove(); });
$("#r").contents().click(function () { $.smartMenu.remove(); });
}
看你的Javascript是否插入頁面,然後函數調用是否真確,console.log打印一下