叶良辰真实资料:高分悬赏,关于网页双框架滚动条的缩进代码.像qihoo.com一样的.

来源:百度文库 编辑:高校问答 时间:2024/04/28 17:00:41
在qihoo.com中.一按左框架就缩进去了.再一按又弹出来....有谁写个详细的代码.给我.谢谢.另我的网页是静态的...不能用PHP.ASP....代码可以用的.我再追加20分........谢谢啦.....

<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="http://www.baidu.com" 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%" bgcolor=blue>
<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 id="switchPoint" title="关闭/打开左栏" style="COLOR: blue; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE:

9pt">关闭或打开</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="http://www.baidu.com" style="HEIGHT: 100%; VISIBILITY:

inherit; WIDTH: 100%; Z-INDEX: 1">
</iframe>

</td>
</tr>
</table>
</html>
希望是你要的