欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

點擊隱藏頁面左欄或右欄實現(xiàn)js代碼

 更新時間:2013年04月01日 16:03:48   作者:  
通過點擊來隱藏頁面左欄或右欄,此效果在實際應(yīng)用中很常見,接下來為大家詳細(xì)介紹下實現(xiàn)代碼,感興趣的朋友可以參考下哈,希望可以幫助到你
點擊隱藏頁面左欄或右欄(同一TABLE中)
復(fù)制代碼 代碼如下:

<style type="text/css">
<!--
.navPoint &#123;COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt&#125;
.STYLE1 &#123;FONT-FAMILY: Webdings; FONT-SIZE: 9pt; cursor: hand;&#125;
-->
</style>
<script>
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 width="20%" align="middle" vAlign="center" noWrap bgcolor="#CC99FF" id="frmTitle" name="frmTitle"> </td>
<td class=a2 style="WIDTH: 9pt"><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/>
<font color="#FF0000"><br/>
<br/>
<br/>
<br/>
<br/>
<span class="STYLE1" id="switchPoint" title="關(guān)閉/打開左欄">3</span><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</font><br/>
<br/>
屏幕切換 </font></td>
</tr>
</table></td>
<td bgcolor="#FFCC99" style="WIDTH: 100%"> </td>
</tr>
</table>
想把隱藏左右欄的那個按鈕按成圖片,改一下JS,IMG增加ID,這里id=aa,也可以換成其它的名稱,參考如下:
<script>
function switchSysBar(){
if (document.all.aa.src.indexOf("bl_1")!=-1){
aa.src="images/al_1.gif"
document.all("frmTitle").style.display="none"
}else{
aa.src="images/bl_1.gif"
document.all("frmTitle").style.display=""
}
}
</script>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="770" valign="top">&nbsp;</td>
<td width="10" onClick="switchSysBar()"><img id="aa" src="images/bl_1.gif" title="關(guān)閉/打開功能導(dǎo)航"></td>
<td width="191" valign="top" id="frmTitle" name="frmTitle">&nbsp;</td>
</tr>
</table>

相關(guān)文章

最新評論