!!.默默 2015-01-05 07:21 采纳率: 53.8%
浏览 2007
已采纳

帮忙看看为何不显示管理 用户显示正常

function writerframe() {
    if (listmode == 0) {
        return;
    }
    if (this.r == null) return;
    if (this.r.document == null) return;
    this.r.document.open();
    this.r.document.writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
    this.r.document.writeln("<link rel='stylesheet' href='"+portraiturl+"css/right.css' type='text/css' />");
    this.r.document.writeln("</head><body style='background-color: transparent;'>");
    this.r.document.writeln("    <script type=\"text/javascript\">");
    this.r.document.writeln("        function openShutManager(oSourceObj, oTargetObj, shutAble, oOpenTip, oShutTip) {");
    this.r.document.writeln("            var sourceObj = typeof oSourceObj == \"string\" ? document.getElementById(oSourceObj) : oSourceObj;");
    this.r.document.writeln("            var targetObj = typeof oTargetObj == \"string\" ? document.getElementById(oTargetObj) : oTargetObj;");
    this.r.document.writeln("            var openTip = oOpenTip || \"\";");
    this.r.document.writeln("            var shutTip = oShutTip || \"\";");
    this.r.document.writeln("            if (targetObj.style.display != \"none\") {");
    this.r.document.writeln("                if (shutAble) return;");
    this.r.document.writeln("                targetObj.style.display = \"none\";");
    this.r.document.writeln("                if (openTip && shutTip) {");
    this.r.document.writeln("                    sourceObj.innerHTML = shutTip;");
    this.r.document.writeln("                }");
    this.r.document.writeln("            } else {");
    this.r.document.writeln("                targetObj.style.display = \"block\";");
    this.r.document.writeln("                if (openTip && shutTip) {");
    this.r.document.writeln("                    sourceObj.innerHTML = openTip;");
    this.r.document.writeln("                }");
    this.r.document.writeln("            }");
    this.r.document.writeln("        }");
    this.r.document.writeln("        function setTab(name, cursel, n) {");
    this.r.document.writeln("            for (i = 1; i <= n; i++) {");
    this.r.document.writeln("                var menu = document.getElementById(name + i);");
    this.r.document.writeln("                var con = document.getElementById(\"con_\" + name + \"_\" + i);");
    this.r.document.writeln("                menu.className = i == cursel ? \"hover\" : \"\";");
    this.r.document.writeln("                con.style.display = i == cursel ? \"block\" : \"none\";");
    this.r.document.writeln("            }");
    this.r.document.writeln("        }");
    this.r.document.writeln("    <\/script>");
    this.r.document.writeln("    <div class=\"Tab1\">");
    this.r.document.writeln("        <div class=\"Menubox\">");
    this.r.document.writeln("            <ul>");
    this.r.document.writeln("                <li id=\"one1\" onmousemove=\"setTab(\'one\',1,2)\" class=\"hover\" style=\"margin-right: 1px;\">");
    this.r.document.writeln("                    用户/<span id=\"UserCount\">0</span></li>");
    this.r.document.writeln("                <li id=\"one2\" onmousemove=\"setTab(\'one\',2,2)\" class=\"\">管理/<span id=\"AdminCount\">0</span></li>");
    this.r.document.writeln("                <li style=\"background: none; width: 10px; padding-left: 4px;\"><a href=\"#\" onclick=\"openShutManager(this,\'box\')\">");
    this.r.document.writeln("                    <img src=\"" + portraiturl + "images/rig04.gif\"></a></li>");
    this.r.document.writeln("                <li style=\"background: none; width: 10px; padding-left: 4px;\">");
    this.r.document.writeln("                    <img src=\"" + portraiturl + "images/rig05.gif\"></li>");
    this.r.document.writeln("            </ul>");
    this.r.document.writeln("        </div>");
    this.r.document.writeln("        <div id=\"box\" style=\"display: none\" class=\"rig01\">");
    this.r.document.writeln("            <div style=\"float: left\">");
    this.r.document.writeln("                <img src=\"" + portraiturl + "images/rig07.gif\"></div>");
    this.r.document.writeln("            <div class=\"rig03\">");
    this.r.document.writeln("                <input type=\"text\" style=\"color: #999999; background: transparent; border: none\"");
    this.r.document.writeln("                    onfocus=\"if(value==defaultValue){value=\'\';this.style.color=\'#000\'}\" onblur=\"if(!value){value=defaultValue;this.style.color=\'#999\'}\"");
    this.r.document.writeln("                    value=\"请输入房间名\" size=\"17\"></div>");
    this.r.document.writeln("            <div style=\"float: left; padding-left: 3px; padding-top: 3px;\">");
    this.r.document.writeln("                <a href=\"#\">邀请好友</a></div>");
    this.r.document.writeln("        </div>");
    this.r.document.writeln("        <div class=\"Contentbox\">");
    this.r.document.writeln("            <div id=\"con_one_1\" style=\"display: block;\">");
    this.r.document.writeln("                <table class=\'list\' width=\"100%\" border=\"0\" id=\"listtable_adm\" cellspacing=\"5\">");
    this.r.document.writeln("                </table>");
    this.r.document.writeln("                <table class=\'list\' width=\"100%\" border=\"0\" id=\"listtable_vip\" cellspacing=\"5\">");
    this.r.document.writeln("                </table>");
    this.r.document.writeln("                <table class=\'list\' width=\"100%\" border=\"0\" id=\"listtable_reg\" cellspacing=\"5\">");
    this.r.document.writeln("                </table>");
    this.r.document.writeln("                <table class=\'list\' width=\"100%\" border=\"0\" id=\"listtable_other\" cellspacing=\"5\">");
    this.r.document.writeln("                </table>");
    this.r.document.writeln("            </div>");
    this.r.document.writeln("            <div id=\"con_one_2\" style=\"display: none;\">");
    this.r.document.writeln("                <table class=\'list\' width=\"100%\" border=\"0\" id=\"listtable_adm\" cellspacing=\"5\">");
    this.r.document.writeln("                </table>");
    this.r.document.writeln("            </div>");
    this.r.document.writeln("        </div>");
    this.r.document.writeln("    </div>");
    this.r.document.writeln("</body></html>");
    this.r.document.close();
}
  • 写回答

2条回答 默认 最新

  • Go 旅城通票 2015-01-05 07:59
    关注

    没发现什么问题

      this.r.document.writeln("                <li id=\"one2\" onmousemove=\"setTab(\'one\',2,2)\" class=\"\">管理/<span id=\"AdminCount\">0</span></li>");
    

    这个没显示还是对应的内容没显示?

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

报告相同问题?

悬赏问题

  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误