可展开和收缩的表格

<style type="text/css">
<!--
td { font-size: 12px; line-height: 150%}
-->
</style>
<script language="JavaScript">
<!--
function hve_display(t_id,i_id){//显示隐藏程序
var t_id;//表格ID
var i_id;//图片ID
var on_img="/img/arrow_down.gif";//打开时图片
var off_img="/img/arrow_down.gif";//隐藏时图片
if (t_id.style.display == "none") {//如果为隐藏状态
t_id.style.display="";//切换为显示状态
i_id.src=on_img;}//换图
else{//否则
t_id.style.display="none";//切换为隐藏状态
i_id.src=off_img;}//换图
}
//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。
//-->
</script>
<a href="<#ZC_BLOG_HOST#>">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr>
<!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.netzzjs@msn.com,用.net打造靓站-->
<table width="500">
<tr>
<td>
<table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699">
<tr bgcolor="#006699">
<td> </td>
<td width="20"><img src="/img/arrow_down.gif" width="17" height="14" name="img1" onClick="hve_display(table1,img1)" style="cursor: hand"  style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td></tr>
<!--图片的ID是img1,要隐藏的表格ID是table1,onclick调用hve_display程序;style设置鼠标为手型。-->
</table>
<table ID="table1" width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120">
<tr bgcolor="#FFFFFF">
<td bgcolor="#7AACFE">很漂亮的一个特效,这个表格可以自由收缩和伸展。</td>
</tr>
</table>
<table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699">
<tr bgcolor="#006699">
<td> </td>
<td width="20"><img src="/img/arrow_down.gif" width="17" height="14" name="img2" onClick="hve_display(table2,img2)" style="cursor: hand"  style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td>
</tr>
</table>
<table id="table2" width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120">
<tr bgcolor="#FFFFFF">
<td bgcolor="#7AACFE"> 欢迎来到站长特效网</td>
</tr>
</table>
<table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699">
<tr bgcolor="#006699">
<td> </td>
<td width="20"><img src="/img/arrow_down.gif" width="17" height="14" name="img3" onClick="hve_display(table3,img3)" style="cursor: hand" style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td>
</tr>
</table>
<table id="table3" width="201" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120">
<tr bgcolor="#FFFFFF">
<td bgcolor="#7AACFE">噢,困死了,sky要睡觉了,各位晚安,下次记得再来。</td>
</tr>
</table>
<table width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699">
<tr bgcolor="#006699">
<td></td>
<td width="20"><img src="/img/arrow_down.gif" width="17" height="14" name="img4" onClick="hve_display(table4,img4)" style="cursor: hand"  style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></td>
</tr>
</table>
<table id="table4" width="200" border="0" cellspacing="1" cellpadding="0" bgcolor="#006699" height="120">
<tr bgcolor="#FFFFFF">
<td bgcolor="#7AACFE">  欢迎下次再来,我们的网址:www.zzjs.net</td>
</tr>
</table>
</td>
</tr>
</table>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值