首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >JS调用兼容IE的问题?

JS调用兼容IE的问题?

提问于 2017-11-29 11:46:15
回答 2关注 0查看 546
 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(); });
}

在IE7下无效呢 IE6和8都正常 .为啥呢

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档