RT。
两个框架,但可以左右移动或上下移动.

解决方案 »

  1.   

    <frameset id="sidebar_content" cols="230, *" frameborder="1" border="6" framespacing="5" bordercolor="#A1C7F9">
    中framespacing设一个不等于0的数
      

  2.   

    <%@ page language="java" contentType="text/html;charset=GB2312" %>
    <html>
    <head>
    <title>switchV.jsp</title>
    <script language="javascript">
    var panelStatus="open";
    var panelWidth=180;function panelSwitch(){
    if (panelStatus=="open")
    closePanel();
    else
    openPanel();
    }
    function closePanel(){
    panelStatus="close";
    window.parent.fraBODY.cols='0,0,7,*';
    window.point.src="/EAM/global/images/ui/switchV_R.gif";
    window.point.alt="展开";
    }
    function openPanel(){
    panelStatus="open";
    window.parent.fraBODY.cols='2,180,7,*';
    window.point.src="/EAM/global/images/ui/switchV_L.gif";
    window.point.alt="关闭";
    }
    </script>
    </head>
    <body bgcolor="#aab3b3" background="/EAM/global/images/ui/switchV_bg.gif" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="center"><img id="point" src="/EAM/global/images/ui/switchV_L.gif" onclick="javascript:panelSwitch();" style="cursor:hand;" alt="关闭"></td>
    </tr>
    </table></body>
    </html>直接用就可以了,frame