<HTML>
<HEAD>
<TITLE>葆力物业管理系统</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<Frameset name="top" frameSpaceing="0" frameBorder="1" rows="25,*" id="AllPage">
<Frame id="TopPage" name="TopPage"  marginWidth="0" marginHeight="0" src="TopMenu.aspx" scrolling="no" noresize>
<FRAMESET name="content" frameSpacing="0" frameBorder="1" cols="168,18,*" id="MainPage">
<FRAME id="LeftPage" frameborder=0  name="LeftPage" marginWidth="0" marginHeight="0" src="UserMenu.aspx"
scrolling="auto" target="RightPage">
<FRAME id="MidPage" frameborder=0 name="MidPage" src="framebar.htm">
<FRAME id="RightPage" frameborder=0 name="RightPage" src="welcome.aspx">
</FRAMESET>
</Frameset>
</HTML>

解决方案 »

  1.   

    framebar.htm<HTML>
    <HEAD>
    <TITLE>Bar</TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var isHiddenMenu =false;
    function SwitchBar()
    {
    if (isHiddenMenu)
    {
    //top.content.cols='168,8,*';
    top.document.getElementsByName("content")[0].cols='168,8,*';//ff,ie
    document.all.switchPoint.src="img/lt_skip.gif";
    document.all.switchPoint.alt ="关闭左栏";
    }
    else
    {
    //top.content.cols='0,8,*';
    top.document.getElementsByName("content")[0].cols='0,8,*';//ff,ie
    document.all.switchPoint.src="img/lt_skip1.gif";
    document.all.switchPoint.alt ="展开左栏";
    }
    isHiddenMenu = !isHiddenMenu;
    }
    function ReSizeFrame(){
    //top.content.cols='168,8,*';
    top.document.getElementsByName("content")[0].cols='168,8,*';//ff,ie
    }
    //-->
    </SCRIPT>
    <BODY topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" onload="ReSizeFrame()">
    <TABLE width="8" height="100%" cellSpacing="0" cellPadding="0" border="0">
    <TBODY>
    <TR>
    <TD background="img/skipbg.gif" width="8">
    <img id="switchPoint" src="img/lt_skip.gif" alt="关闭左栏" border="0" style="cursor:hand;" onClick="SwitchBar();">
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </BODY>
    <noframes><!--//这是的用来显示当浏览器不支持frame时显示的页面内容-->
    <body bgcolor="#FFFFFF" text="#000000">
    <font color="red">你的浏览器不支持frame</font>
    </body>
    </noframes> 
    </HTML>
      

  2.   

    现在需要使用 div 来实现类似<frameset的左右托放和显示隐藏功能!
    不用<frameset