您的位置:首页 > Web前端 > HTML

html在同一个页面上几个表格切换

2010-04-01 20:48 309 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<mce:script type="text/javascript" scr="./js/jquery.js"></mce:script>
<mce:script type="text/javascript"><!--
$(document).ready(function(){
selectMenu(document.getElementById('td0'),'tab0');
})
function selectMenu(oThis,tabID)
{
for(i = 0; i<3; i++){
document.getElementById("tab" + i).style.display = "none";
}
document.getElementById(tabID).style.display = "";

}
// --></mce:script>
</head>
<body>
<table border="0">
<tbody>
<tr id="tabtr">
<td id="td0" class="on" onclick="selectMenu(this,'tab0')"><a
href="#" mce_href="#"><span>待审核的应用</span></a></td>
<td id="td1" onclick="selectMenu(this,'tab1')"><a href="#"
mce_href="#"><span>待审核的评论</span></a></td>
<td id="td2" onclick="selectMenu(this,'tab2')"><a href="#"
mce_href="#"><span>待测试的应用</span></a></td>
</tr>
</tbody>
</table>
<table id="tab0" style="width: 200px; height: 200px;" border="0"
cellspacing="1">
<tbody>
<tr>
<th>tabo</th>
<td>第一个表格</td>
</tr>
</tbody>
</table>
<table id="tab1" style="display: none; width: 200px; height: 200px;"
border="0" cellspacing="1">
<tbody>
<tr>
<th>tabo</th>
<td>第二个表格</td>
</tr>
</tbody>
</table>
<table id="tab2" style="display: none; width: 200px; height: 200px;"
border="0" cellspacing="1">
<tbody>
<tr>
<th>tabo</th>
<td>第三个表格</td>
</tr>
</tbody>
</table>
<td class="toolbar"></td>
<p></p>
<p></p>
<p></p>
<p><input id="searchButton" class="inputButton" type="button"
value=" 查 询 " /></p>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐