!!.默默 2015-01-08 05:13 采纳率: 53.8%
浏览 2000
已采纳

JS调用为何在IE7下无效呢 IE6和8都正常

    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(); });
}
  • 写回答

2条回答

  • oyljerry 2015-01-08 05:36
    关注

    看你的Javascript是否插入页面,然后函数调用是否真确,console.log打印一下

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站