如附件上的图片所示,我点击"群众管理"的时候,它下面的面板会隐藏,但是"治安管理"和它下面的面板确不会跟着上去,请问这应该怎么弄啊,我就是想做一个像Windows XP左边的面板,请各位给点意见.

解决方案 »

  1.   

    b/s模式的,就是想做成Windows xp左边的导航条那样的效果
      

  2.   

    我建议你别去想着做出滑动。因为你Js还不行。
    <table width="100">
      <tr>
        <td height="20" bgcolor="#999999" onClick="DTest('a1')">&nbsp;</td>
      </tr>
      <tr>
        <td height="80" Id="a1">&nbsp;</td>
      </tr>
    </table>
    <table width="100">
      <tr>
        <td height="20" bgcolor="#999999" onClick="DTest('a2')">&nbsp;</td>
      </tr>
      <tr>
        <td height="80" Id="a2">&nbsp;</td>
      </tr>
    </table>
    <table width="100">
      <tr>
        <td height="20" bgcolor="#999999" onClick="DTest('a3')">&nbsp;</td>
      </tr>
      <tr>
        <td height="80" Id="a3">&nbsp;</td>
      </tr>
    </table>
    <script language="javascript" type="text/javascript">
    function DTest(DataObjId){
    document.getElementById(DataObjId).style.display = (document.getElementById(DataObjId).style.display == "none")?"block":"none";
    }
    </script>