[CODE]
<html>
<head>
<title>表格折叠</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function menu_display(
t_id,i_id){//论坛版块折叠,显示隐藏程序
var t_id;//表格ID
var i_id;//图片ID
var on_img="../image//fold_2.gif";//打开时图片
var off_img="../image//fold_1.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;
}//换图
}
</script>
</head>
<body
onLoad="javascript:onlineuser_display(online01)">//默认打开
<div align="center">
</div>
<table width='995' align='center' cellspacing=0 style='border:#87A4E9 1px solid;' cellpading=0>
<tr>
<td width="786" background='../Image/bg1.gif'>
<table>
<tr>
<td width="130" height="20" style='color:#000000;font-size:14px;cursor:hand;' onclick=javascript:menu_display(hyglpts01,hyglptsimg01)><a name=20></a> <img src='../Image/fold_2.gif' width="16" height="16"
id=hyglptsimg01>【点击这里折叠表格】</td>
</tr>
</table>
</td>
</tr>
<
TBODY id=hyglpts01>//id 一定是唯一的。表格只折叠TBODY包含着的这一部份表格!
<tr>
<td>
<table width="995" height="31" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="127" align="center"><strong>版面名称</strong></td>
<td width="545"> </td>
<td width="86" align="center"><strong>今日发表</strong></td>
<td width="103" align="center"><strong>总共发表</strong></td>
<td width="134" align="center"><strong>版主</strong></td>
</tr>
</table>
<table bgcolor='#FAFAFA' border=0 width='995' cellspacing=0 cellpadding=3>
<tr height=25>
<td width='121' align="center" valign="bottom"><a href="#">『ASP编程』</a></td>
<td colspan="2"> </td>
<td width='80' rowspan="2" align='center'>256</td>
<td width='97' rowspan="2" align='center'>369</td>
<td width="128" colspan="2" rowspan="2" align='center'>版主1<br>
版主2<br>
版主3</td>
</tr>
<tr>
<td colspan="3" valign='top' style='line-height:150%'><font color="#C8C8C8">ASP编程版介绍</font></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
</body>
</html>[/CODE]