<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:///TR/xhtml1/DTD/">
<html xmlns="http:///1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Demonstrate the expansion and closing effect</title>
<style type="text/css">
table{
border:#0000FF 1px solid;
}
table td{
border:#0033FF 1px solid;
background-color:#6699FF;
}
table td div{
background-color:#FFFF99;
display:none;
}
table td a:link,table td a:visited{
text-decoration:none;
color:#993300;
}
.open{
display:block;
}
.close{
display:none;
}
</style>
<script type="text/javascript">
function list(){
var aNode = ;
//alert();//Get a brother node and it is easy to get an empty text node
var tdNode = ;
var divNode = ("div")[0];
var tabNode = ("table")[0];
var divNodes = ("div");
for(var x = 0;x < ;x++){
if(divNodes[x]==divNode){
if(=="open"){
="close";
}else{
="open";
}
}else{
divNodes[x].className="close";
}
}
//alert();
}
</script>
</head>
<body>
<table>
<tr>
<td>
<a href="javascript:void(0)" onclick="list()">Friend menu list</a>
<div>
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
</div>
</td>
</tr>
<tr>
<td>
<a href="javascript:void(0)" onclick="list()">Friend menu list</a>
<div>
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
</div>
</td>
</tr>
<tr>
<td>
<a href="javascript:void(0)" onclick="list()">Friend menu list</a>
<div>
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
</div>
</td>
</tr>
<tr>
<td>
<a href="javascript:void(0)" onclick="list()">Friend menu list</a>
<div>
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
The Legend of the New White-Haired Witch<br />
</div>
</td>
</tr>
</table>
</body>
</html>