js左右伸缩效果(兼容ff/ie)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>【首页】</title>
<style  type="text/css">
body{text-align:center}
.a2 {background-color:A4B6D7;}
.STYLE2{ color:a4b6d7; }
</style>
</head>

<body style="MARGIN: 0px" scroll=no onResize=javascript:parent.bbsleft.location.reload()>
<script>
if(self!=top){top.location=self.location;}
function switchSysBar(){

var  obj=document.getElementById("switchPoint");
var  ft =document.getElementsByTagName("*").frmTitle;

if (ft.style.display==""){
obj.innerHTML='<img src=./images/arrow_right.gif border=0>';
ft.style.display="none";

}else{

obj.innerHTML='<img src=./images/arrow_left.gif border=0>';
ft.style.display="";

}

}
</script>
<div style="border:1px solid #505050;margin:10px auto;width:990px;height:95%">
<table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
  <tr>
    <td align="middle" vAlign="center" id="frmTitle" style='display:'>
    <iframe src="bbsleft.php" frameBorder="0" id="bbsleft" name="bbsleft" scrolling=no style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 200px; Z-INDEX: 2">
    </iframe>
    </td>
    <td bgcolor="A4B6D7" style="WIDTH: 9pt">
    <table border="0" cellPadding="0" cellSpacing="0" height="100%">
      <tr>
        <td style="HEIGHT: 100%" onClick="switchSysBar()" align="center">
        <font style="FONT-SIZE: 9pt; CURSOR: default; COLOR: #ffffff">
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <span id="switchPoint" title="关闭/打开左栏"><img src=./images/arrow_left.gif border=0></span><br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        切<br>换 </font></td>
      </tr>
    </table>
    </td>
     <td style="WIDTH: 100%">
        <iframe src="bbsright.php" frameborder="0" id="bbsright" name="bbsright" scrolling="yes" style="HEIGHT: 96%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 2"></iframe></td>
  </tr>
</table>


</div>
<script>
if(window.screen.width<'1024'){switchSysBar()}
</script>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值