页面框架结构是左iframe 右iframe结构,请问怎么样让左iframe 具有往左边隐藏和显示的功能,JS代码改怎么实现。

解决方案 »

  1.   

    这个问题到WEB区提问比较适合的。
      

  2.   

    net的项目,呵呵 在这里问吧
      

  3.   

    在左边iframe中加入 div 右边的也加入div 
    控制div 的大小
      

  4.   

    <div id="XXX">
    <iframe width="100" id=iframe1 src="HTMLPage3.aspx"></iframe>
    </div>
    <div id="YYY"><iframe width="200" id=iframe2 src="HTMLPage5.htm"></iframe>
    </div><script language="javascript">
    XXX.style.visibility = "hidden";
    </script>当然,你也可以设置XXX.style.width等;
      

  5.   

    可以在iframe1里的操作,对iframe2起作用吗?
      

  6.   

    随便找个论坛,163,或者tom...
    只要有这个功能的,看一下它的页面的HTML就知道了...
      

  7.   


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta http-equiv="Content-Language" content="gb2312" />
    <meta content="all" name="robots" />
    <meta name="Author" content="[email protected] ,活靶子" />
    <meta name="Copyright" content="www.AspxBoy.Com,自由版权,任意转载." />
    <meta name="Description" content="www.AspxBoy.Com" />
    <meta name="Keywords" content="www.AspxBoy.Com,活靶子,huobazi" />
    <title> New New Document</title>
    <style type="text/css">
    .navPoint {COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt}
    </style>
    </head><body style="MARGIN: 0px" scroll=no>
    <script>
    if(self!=top){top.location=self.location;}
    function switchSysBar(){
    if (switchPoint.innerText==3){
    switchPoint.innerText=4
    document.all("frmTitle").style.display="none"
    }else{
    switchPoint.innerText=3
    document.all("frmTitle").style.display=""
    }}
    </script><table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
      <tr>
        <td align="middle" noWrap vAlign="center" id="frmTitle">
        
        
        <iframe frameBorder="0" id="carnoc" name="carnoc" scrolling="no" src="left.html" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 150px; Z-INDEX: 2">
        </iframe>
        
            </td>
        <td style="WIDTH: 9pt" class=division>
        <table border="0" cellPadding="0" cellSpacing="0" height="100%">
          <tr>
            <td style="HEIGHT: 100%" onclick="switchSysBar()">
            <font style="FONT-SIZE: 9pt; CURSOR: default; COLOR: #ffffff">
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <span class="navPoint" id="switchPoint" title="关闭/打开左栏">3</span><br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            屏幕切换 </font></td>
          </tr>
        </table>
        </td>
        <td style="WIDTH: 100%">    <iframe frameBorder="0" id="main" name="main" scrolling="yes" src="right.html" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1">
        </iframe>    </td>
      </tr>
    </table>
    </html>
    <script>
    if(window.screen.width<'1024'){switchSysBar()}
    </script>
    </body></html>