<html>
<head>
<style>
<!--
body, table {
font-size:16px;
}
a{ color:#467aa7; }
a:hover{color:#2a5a8a;}
table.part {border-collapse:collapse; width:90%; padding: 1px; margin-bottom: 20px; border:solid 1px black;}
table.part td {padding: 2px; white-space: nowrap; text-align: left; border:solid 1px}
table.part thead th {font-weight: bold; font-size: 100%; padding: 3px; white-space: nowrap; text-align: center; border:solid 1px}
table.part th {font-weight: normal; font-size: 90%; padding: 3px; white-space: nowrap; text-align: center; border:solid 1px}
a{
/*font-weight:bold;*/
/*text-decoration:none;*/
background-color:inherit;
}
a:hover{ text-decoration:none; background-color:inherit;}
a img{border:none;}
p{padding:0 0 1.6em 0;}
p form{margin-top:0; margin-bottom:20px;}
img.left,img.center,img.right{padding:4px; border:1px solid #a0a0a0;}
img.left{float:left; margin:0 12px 5px 0;}
img.center{display:block; margin:0 auto 5px auto;}
img.right{float:right; margin:0 0 5px 12px;}
xx*{margin:0; padding:0;}
// -->
</style>
<script language="Javascript">
<!--
function showdiv(nodeid){
try {
var imgid = "img_"+nodeid;
var nodeobj = document.getElementById(nodeid);
var imgobj = document.getElementById(imgid);
var display = nodeobj.style.display;
if(display == "none") {
nodeobj.style.display="";
if(imgobj) {
imgobj.src="http://bbs.163.com/bbs/img07/bg03.gif";
}
}else if(display==""){
nodeobj.style.display="none";
if(imgobj) {
imgobj.src="http://bbs.163.com/bbs/img07/bg04.gif";
}
}
}catch(e){
alert(e);
}
}
function showtr(trids, imgid){
//try {
var imgobj = document.getElementById(imgid);
var trIdArr = trids.split(",");
var display = document.getElementById(trIdArr[0]).style.display;
for(var i=0; i<trIdArr.length; i++) {
var trobj = document.getElementById(trIdArr[i]);
if(display == "none") {
trobj.style.display="";
if(imgobj) {
imgobj.src="http://bbs.163.com/bbs/img07/bg03.gif";
}
}else if(display==""){
trobj.style.display="none";
if(imgobj) {
imgobj.src="http://bbs.163.com/bbs/img07/bg04.gif";
}
}
}
//}catch(e){
// alert(e);
//}
}
//-->
</script>
</head>
<body>
<BR>
<h4>
<a href="javascript:showdiv('a001')" target="_self"><img src="http://bbs.163.com/bbs/img07/bg03.gif" id="img_a001" border=0></a>
<a href="javascript:showdiv('a001')" target="_self">ngnops project</a>
</h4>
<div id="a001">
<h5>111111111111111111111111111111111111111</h5>
</div>
Example of hide and show:<br>
<table class="part">
<tr>
<td><a href="javascript:showtr('a002','img_a002');" target="_self"><img src="http://bbs.163.com/bbs/img07/bg03.gif" id="img_a002" border=0></a> 111</td>
<td>111</td>
<td>111</td>
<td>111</td>
<td>111</td>
</tr>
<tr id="a002">
<td>222</td>
<td>222</td>
<td>222</td>
<td>222</td>
<td>222</td>
</tr>
<tr id="a003">
<td colspan=3><a href="javascript:showtr('a005','img_02');showtr('a004,a005,a006,a007','img_01');" target="_self"><img src="http://bbs.163.com/bbs/img07/bg03.gif" id="img_01" border=0></a>333</td>
<td>333</td>
<td>333</td>
</tr>
<tr id="a004">
<td rowspan=4>444</td>
<td colspan=2><a href="javascript:showtr('a005','img_02');" target="_self"><img src="http://bbs.163.com/bbs/img07/bg03.gif" id="img_02" border=0></a>444</td>
<td>444</td>
<td>444</td>
</tr>
<tr id="a005">
<td> </td>
<td>555</td>
<td>555</td>
<td>555</td>
</tr>
<tr id="a006">
<td colspan=2>666</td>
<td>666</td>
<td>666</td>
</tr>
<tr id="a007">
<td colspan=2>777</td>
<td>777</td>
<td>777</td>
</tr>
<tr>
<td>888</td>
<td>888</td>
<td>888</td>
<td>888</td>
<td>888</td>
</tr>
<tr>
<td>999</td>
<td>999</td>
<td colspan=3>999</td>
</tr>
</table>
<body>
</html>