<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=" />
<meta name="Design Corp" content="kevin" />
<meta name="Designer" content=" www.bluekevin.com" />
<meta name="Designer mail" content=" kevin_218@.163.com" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>简单实用折叠菜单</title>
<STYLE>
.hide{display:none;}
.show{display:block;}
.pointer{cursor:pointer;}
</STYLE>
</head>
<body>
<table id="menu" width="200" border =1 align="center" cellpadding="0" cellspacing="0" bordercolor="#000" >
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td height="28" align="center" >
<table width="150" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>好友列表</td>
</tr>
</table>
</td>
</tr>
<tr class="show" >
<td align="center" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">Menu Item</td>
</tr>
<tr>
<td align="center">Menu Item</td>
</tr>
<tr>
<td align="center">Menu Item</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td align="center" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>在线人数</td>
</tr>
</table>
</td>
</tr>
<tr class="hide">
<td align="center" valign="top"> <table width="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">1</td>
</tr>
<tr>
<td align="center">2</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td align="center" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>聊天室</td>
</tr>
</table>
</td>
</tr>
<tr class="hide">
<td align="center" valign="top"> <table width="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">1</td>
</tr>
<tr>
<td align="center">2</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td align="center" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>黑名单</td>
</tr>
</table>
</td>
</tr>
<tr class="hide">
<td align="center" valign="top"> <table width="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">1</td>
</tr>
<tr>
<td align="center">2</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<tr>
<td height="200" > </td>
</tr>
<tr>
<td >footer</td>
</tr>
</table>
<script>
function Menu(obj)
{
var tb=document.getElementById("menu");
for(i=0;i<8;i++)
{
if(i % 2 ==1)
{
tb.rows[i].className="hide";
}
}
if(obj.className="pointer" )
{
if(tb.rows(obj.rowIndex+1).className=="show")
{
tb.rows(obj.rowIndex+1).className="hide";
}
else
{
tb.rows(obj.rowIndex+1).className="show";
}
}
}
</script>
</body>
</html>
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=" />
<meta name="Design Corp" content="kevin" />
<meta name="Designer" content=" www.bluekevin.com" />
<meta name="Designer mail" content=" kevin_218@.163.com" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>简单实用折叠菜单</title>
<STYLE>
.hide{display:none;}
.show{display:block;}
.pointer{cursor:pointer;}
</STYLE>
</head>
<body>
<table id="menu" width="200" border =1 align="center" cellpadding="0" cellspacing="0" bordercolor="#000" >
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td height="28" align="center" >
<table width="150" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>好友列表</td>
</tr>
</table>
</td>
</tr>
<tr class="show" >
<td align="center" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">Menu Item</td>
</tr>
<tr>
<td align="center">Menu Item</td>
</tr>
<tr>
<td align="center">Menu Item</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td align="center" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>在线人数</td>
</tr>
</table>
</td>
</tr>
<tr class="hide">
<td align="center" valign="top"> <table width="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">1</td>
</tr>
<tr>
<td align="center">2</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td align="center" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>聊天室</td>
</tr>
</table>
</td>
</tr>
<tr class="hide">
<td align="center" valign="top"> <table width="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">1</td>
</tr>
<tr>
<td align="center">2</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<!--Begin #-->
<tr class="pointer" οnclick="Menu(this);">
<td align="center" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td>黑名单</td>
</tr>
</table>
</td>
</tr>
<tr class="hide">
<td align="center" valign="top"> <table width="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">1</td>
</tr>
<tr>
<td align="center">2</td>
</tr>
</table>
</td>
</tr>
<!--End #-->
<tr>
<td height="200" > </td>
</tr>
<tr>
<td >footer</td>
</tr>
</table>
<script>
function Menu(obj)
{
var tb=document.getElementById("menu");
for(i=0;i<8;i++)
{
if(i % 2 ==1)
{
tb.rows[i].className="hide";
}
}
if(obj.className="pointer" )
{
if(tb.rows(obj.rowIndex+1).className=="show")
{
tb.rows(obj.rowIndex+1).className="hide";
}
else
{
tb.rows(obj.rowIndex+1).className="show";
}
}
}
</script>
</body>
</html>