leftFrm.htm代码<HTML>
<!--
 ---------------------------------------------------------------------------
 this script is copyright (c) 2001 by Michael Wallner!
 http://www.wallner-software.com
 mailto:[email protected] you may use this script on web pages of your own
 you must not remove this copyright note! This script featured on Dynamic Drive (http://www.dynamicdrive.com)
 Visit http://www.dynamicdrive.com for full source to this script and more
 ---------------------------------------------------------------------------
-->
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=gb2312">
<TITLE>Outlook Like Bar</TITLE><!--
  you need this style or you will get an error in ns4 on first page load!
-->
<STYLE>
  div    {
         position:absolute;
         }
</STYLE>
<script language="JavaScript" src="../common/crossbrowser.js" type="text/javascript">
</script>
<script language="JavaScript" src="../common/outlook.js" type="text/javascript">
</script>
<SCRIPT language="javascript">
  //create OutlookBar
  var o = new createOutlookBar('Bar',0,0,screenSize.width,screenSize.height,'848284','red')//'#000099') // OutlookBar
  var p;  //create first panel
  p = new createPanel('p1','基本信息表设置');
  p.addButton('../images/pp-resource.gif','车站信息','parent.rightFrame.location="station/stationIndex.htm"');
  p.addButton('../images/DWM-training.gif','车头信息','parent.rightFrame.location="trainhead/trainHeadIndex.htm"');//pp-task.gif
  p.addButton('../images/enum.gif','交路信息','parent.rightFrame.location="lineinfo/lineInfoIndex.htm"');
  p.addButton('../images/pp-cost.gif','车头类型信息','parent.rightFrame.location="headtype/headtypeIndex.htm"');
  p.addButton('../images/admin-user.gif','人员信息','parent.rightFrame.location="user/userIndex.htm"');
  p.addButton('../images/admin-diary.gif','组织机构信息','parent.rightFrame.location="organization/organizationIndex.htm"');
  o.addPanel(p);  //create first panel
  p = new createPanel('p2','权限设置');
  p.addButton('../images/admin-user.gif','权限设置','parent.rightFrame.location="purview/purviewIndex.htm"');
  p.addButton('../images/admin-people.gif','权限模块设置','parent.rightFrame.location="module/moduleIndex.htm"');
  p.addButton('../images/pp-role.gif','角色设置','parent.rightFrame.location="role/roleIndex.htm"');
  o.addPanel(p);  p = new createPanel('p3','基本信息表设置');
  p.addButton('../images/enum.gif','连接信息设置','parent.rightFrame.location="config/setServerInfo.jsp"');
  o.addPanel(p);  o.draw();         //draw the OutlookBar
  myOnResize();
//  window.setTimeout("FirstClick(0)",10);//-----------------------------------------------------------------------------
//functions to manage window resize
//-----------------------------------------------------------------------------
//resize OP5 (test screenSize every 100ms)
function resize_op5() {
  if (bt.op5) {
    o.showPanel(o.aktPanel);
    var s = new createPageSize();
    if ((screenSize.width!=s.width) || (screenSize.height!=s.height)) {
      screenSize=new createPageSize();
      //need setTimeout or resize on window-maximize will not work correct!
      //ben\uFFFDige das setTimeout oder das Maximieren funktioniert nicht richtig
      setTimeout("o.resize(0,0,screenSize.width,screenSize.height)",100);
    }
    setTimeout("resize_op5()",100);
  }
}//resize IE & NS (onResize event!)
function myOnResize() {
  if (bt.ie4 || bt.ie5 || bt.ns5) {
    var s=new createPageSize();
    o.resize(0,0,s.width,s.height);
  }
  else
    if (bt.ns4) location.reload();
}</SCRIPT></head>
<!-- need an onResize event to redraw outlookbar after pagesize changes! -->
<!-- OP5 does not support onResize event! use setTimeout every 100ms -->
<body onLoad="resize_op5();" onResize="myOnResize();">
</body>
</html>

解决方案 »

  1.   

    rightFrm.htm代码
    <%@ Language=JavaScript%>
    <!--#INCLUDE FILE="..\Login\CheckValid.asp" -->
    <html>
    <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"></head>
    <body bgcolor="#CCCCCC">
    <table width="100%" height="100%" border="0">
      <tr>
        <td width="100%" align="center" valign="middle">
          <div align="center"><img src="../images/title.gif" width="400" height="195" align="absmiddle"></div></td>
      </tr>
    </table>
    <p align="center">&nbsp;</p>
    </body>
    </html>topFrm.htm代码
    <html>
    <head>
    <title>demo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="stylesheet" type="text/css" HREF="../common/olstyle.css">
    <script language="JavaScript" src="../common/moveBar.js" type="text/javascript">
    </script>
    <script language="JavaScript">
                     //createMoveBar(aName,aWidth,aHeight,aBgColor,aBg,aMoveable)
                     // 每个小bar的宽度是90
        var bar = new createMoveBar('bar',3*90,24,'#dfdfdf','',false); // 如果想让Bar循环滚动,那么设置true,否则false               //createButton(aName,aOnImgsrc,aOffImgsrc,action,alt,width,height),the action should be like "x'x'x",not 'x"x"x'
        var bt = new createButton('test0','../images/si-selected.gif','../images/si-unselected.gif','parent.leftFrame.clearRecent();parent.leftFrame.o.showPanel(0);parent.rightFrame.location="welcomePP.htm";','基本信息表设置',90,24);
        bar.addButton(bt);
        var bt = new createButton('test1','../images/authorization-selected.gif','../images/authorization-unselected.gif','parent.leftFrame.clearRecent();parent.leftFrame.o.showPanel(1);parent.rightFrame.location="welcomePP.htm";','权限设置',90,24);
        bar.addButton(bt);
        var bt = new createButton('test2','../images/config-selected.gif','../images/config-unselected.gif','parent.leftFrame.clearRecent();parent.leftFrame.o.showPanel(2);parent.rightFrame.location="welcomePP.htm";','用户配置',90,24);
        bar.addButton(bt);
    function btnAbout_onclick() {
       var myObject = new Object(); //used for arg
        window.showModalDialog("../basic/about.htm",myObject,"dialogWidth:400px;dialogHeight:260px;status:no;scroll:no;help:no")
    }
    function btnHelp_onclick() {
       var myObject = new Object(); //used for arg
        window.showModalDialog("../basic/help.jsp",myObject,"dialogWidth:799px;status:no;scroll:yes;help:no")
    }
    </script>
    <!---- BEGIN TOP NAVIGATION JAVASCRIPT ROLLOVER CODE HERE ---->
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Hide JavaScript from obsolete browsers
    var isIMG = document.images;   //See if the browser supports the images object
        if (isIMG) {
      nav_top_on = new Image(74,13);
    nav_top_on.src = "../images/nav_top_on.gif";
      nav_top_off = new Image(74,13);
    nav_top_off.src = "../images/nav_top_off.gif";
    nav_middle_on = new Image(74,13);
    nav_middle_on.src = "../images/nav_middle_on.gif";
      nav_middle_off = new Image(74,13);
    nav_middle_off.src = "../images/nav_middle_off.gif";
    nav_down_on = new Image(74,13);
    nav_down_on.src = "../images/nav_down_on.gif";
      nav_down_off = new Image(74,13);
    nav_down_off.src = "../images/nav_down_off.gif";
    }
    function rollon(imgName) {
            if (isIMG) {
            imgOn = eval(imgName + "_on.src");
            document[imgName].src = imgOn;
            }
    }
    function rolloff(imgName) {
            if (isIMG) {
            document[imgName].src = eval(imgName + "_off.src");
            }
    }
    // -->
    </SCRIPT>
    <!---- END TOP NAVIGATION JAVASCRIPT ROLLOVER CODE HERE ---->
    </head><body bgColor="#dfdfdf&quot;" text="#000000" topmargin="1000">
    <table width="100%" height="35" cellPadding="0" cellSpacing="0" bgcolor="#dfdfdf">
      <tbody>
        <tr style="HEIGHT: 3px" align="left">
          <td height="43" align="center" vAlign="middle" background="../images/topbg.gif" bgcolor="#dfdfdf">
            <div align="center"><FONT color=#800000
                      size=6><B><font color="#0000FF"><FONT color=#800000
                      size=6><B><font color="#0000FF"><font color="#3399CC">机车运况跟踪系统后台管理</font></font></B></FONT><font color="#3399CC">
              </font></font></B></FONT> </div></td>
        </tr>
      </tbody>
    </table>
    <table cellSpacing="0" cellPadding="0" width="100%">
    <tbody>
    <tr style="HEIGHT: 5px" align="middle" bgColor="#dfdfdf">
                    <td vAlign="top" align="left" width="50%" height="5"></td>
    <td align="right" width="50%"></td>
    </tr>
    </tbody>
    </table>
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
      <tbody>
        <tr>    <td width="516" valign=bottom nowrap bgColor=#dfdfdf>
          <script language="javascript">
        bar.draw();</script></td>    <TD     align=center valign="middle" noWrap
      bgColor=#dfdfdf width="347">
          <TD width="156"     align=center noWrap
      bgColor=#29419C> <font color=#aaaa00>|</font><a class=whitetext href="help/helpview.htm" target="_blank">帮助</a>
            <font color=#aaaa00>| </font><A class=whitetext Title="about Future" LANGUAGE=javascript onclick="return btnAbout_onclick()" href="#"><font color="#CCCCCC">关于</font></a>
            <font color=#aaaa00>|</font> <a class=whitetext href="../basic/login.jsp" target="_parent">退出</a><font color=#aaaa00>|</font></TD>
        </tr>
      </tbody>
    </table><table cellSpacing="0" cellPadding="0" width="100%">
    <tbody>
    <tr style="HEIGHT: 4px" align="middle" bgColor="#93bee2">
        <td vAlign="top" align="left" width="50%" height="2"></td>
    <td width="50%" align="right" bgcolor="#93bee2" height="2"></td>
    </tr>
    </tbody>
    </table></body>
    </html>
    现在的问题就是topFrm.htm不显示,望兄弟们多多帮忙,这个问题已经折腾我半天了
    不知道什么原因,也没有什么错误。