框架开合显示

 

以前使用的,可以对左边进行显示和隐藏的功能。

 

<textarea cols="50" rows="15" name="code" class="c-sharp">&lt;html&gt; &lt;head&gt; &lt;title&gt;系统主框架&lt;/title&gt; &lt;/head&gt; &lt;frameset name="mainframe" id="mainframe" rows="70,*" border="0" bordercolor="#999999"&gt; &lt;frame src="../InterFace/Top.aspx" mce_src="InterFace/Top.aspx" name="top" scrolling="no" bordercolor="#999999" border="0" &gt; &lt;frameset name="leftframe" id="leftframe" cols="200,5,*"&gt; &lt;frame src="../InterFace/Left.aspx" mce_src="InterFace/Left.aspx" name="left" scrolling="auto" bordercolor="#999999" border="0"&gt; &lt;frame src="../InterFace/Change.html" mce_src="InterFace/Change.html" name="change" scrolling="no" noresize="true" marginwidth="0" marginheight="0"&gt; &lt;frameset name="rightframe" rows="*,22"&gt; &lt;frame src="../InterFace/Right.aspx" mce_src="InterFace/Right.aspx" name="right" scrolling="auto" bordercolor="#999999" border="0"&gt; &lt;frame src="../InterFace/Foot.aspx" mce_src="InterFace/Foot.aspx" name="foot" scrolling="no"&gt; &lt;/frameset&gt; &lt;/frameset&gt; &lt;/frameset&gt; &lt;/html&gt; </textarea> 

 

<textarea cols="50" rows="15" name="code" class="c-sharp">&lt;html&gt; &lt;head&gt; &lt;mce:script language="javascript"&gt;&lt;!-- var iniCols, noCols, o_mf, o_ms, s; function ini() { o_mf = parent.document.getElementById("leftframe"); o_ms = document.getElementById("menuImg"); iniCols = o_mf.cols; noCols = iniCols; if ((pos = noCols.indexOf(",")) != -1) { noCols = "0" + noCols.substring(pos); } s = false; } function changeLeft(){ s = !s; o_mf.cols = s ? noCols : iniCols; o_ms.innerHTML = s ? document.getElementById("menuImg").src="../Images/open.gif" : document.getElementById("menuImg").src="../Images/close.gif"; } // --&gt;&lt;/mce:script&gt; &lt;/head&gt; &lt;body onload=ini() &gt; &lt;table width=100% height=100% border=0 cellpadding=0 cellspacing=0&gt; &lt;tr&gt; &lt;td onclick="changeLeft()"&gt; &lt;img src="../Images/line.JPG" mce_src="Images/line.JPG"" /&gt;&lt;img id="menuImg" width="15" height="24" align="absmiddle" src="../Images/close.gif" mce_src="Images/close.gif"/ &gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt;</textarea> 

 

你可能感兴趣的:(JavaScript,框架,function,table,ini,border)