一个网页里放两个tab冲突,高手帮忙解决一下啊
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>兼容IE7 IE8 FF 等主流浏览器多标签滑动门</title>
<style type="text/css">
body{
color: #000;
font-family: "宋体", arial;
font-size: 12px;
background: #fff;
text-align: center;
margin: 0;
}
.nTab{
float: left;
width: 522px;
margin: 0 auto;
border-bottom:1px #c2c2c2 solid;
background:#d5d5d5;
background-position:left;
background-repeat:repeat-y;
margin-bottom:2px
}
.nTab .TabTitle{
clear: both;
height: 26px;
overflow: hidden;
}
.nTab .TabTitle ul{
margin:0;
padding:0;
}
.nTab .TabTitle li{
float: left;
width: 65px;
cursor: pointer;
padding-top: 6px;
padding-right: 0px;
padding-left: 0px;
padding-bottom: 7px;
list-style-type: none;
}
.nTab .TabTitle .active{ color:#FF6600; background:url(http://www.) left -25px no-repeat;border-left:1px #c2c2c2 solid;border-top:1px #c2c2c2 solid;border-bottom:1px #fff solid;}
.nTab .TabTitle .normal{ background:url(http://www.);border-top:1px #c2c2c2 solid;border-bottom:1px #c2c2c2 solid;}
.nTab .TabContent{
width:auto;background:#fff;
margin: 0px auto;
padding:0;
border-right:1px #c2c2c2 solid;border-left:1px #c2c2c2 solid;
}
.none {display:none;}
.boxa{ width:500px; height:200px; background:#666666}
</style>
<script type="text/javascript">
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active";
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal";
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
}
}
</script>
</head>
<body>
<br />
<br />
<center>
<div>
<!-- 选项卡开始 -->
<div class="nTab">
<!-- 标题开始 -->
<div class="TabTitle">
<ul id="myTab0">
<li class="active" onclick="nTabs(this,0);">全部全部</li>
<li class="normal" onclick="nTabs(this,1);">日志全部</li>
<li class="normal" onclick="nTabs(this,2);">咨询全部</li>
<li class="normal" onclick="nTabs(this,3);">相册全部</li>
<li class="normal" onclick="nTabs(this,4);">商城全部</li>
<li class="normal" onclick="nTabs(this,5);">社区全部</li>
<li class="normal" onclick="nTabs(this,6);">商城全部</li>
<li class="normal" onclick="nTabs(this,7);">社区全部</li>
</ul>
</div>
<!-- 内容开始 -->
<div class="TabContent">
<div id="myTab0_Content0"> <div class="boxa">fdfd</div></div>
<div id="myTab0_Content1" class="none"><a href="http://www.计源论坛 计源论坛</a></div>
<div id="myTab0_Content2" class="none"><a href="http://www.计源论坛22</a></div>
<div id="myTab0_Content3" class="none"><a href="http://www.计源论坛33</a></div>
<div id="myTab0_Content4" class="none"><a href="http://www.计源论坛4</a></div>
<div id="myTab0_Content5" class="none"><a href="http://www.计源论</a></div>
<div id="myTab0_Content6" class="none"><a href="http://www.计源论坛66</a></div>
<div id="myTab0_Content7" class="none"><a href="http://www.计源论坛77</a></div>
<div id="myTab0_Content8" class="none"><a href="http://www.计源论坛8</a></div>
</div>
</div>
<!-- 选项卡结束 -->
</div>
</center>
<br />
<br />
<br />
<br />
<center>
<div>
<!-- 选项卡开始 -->
<div class="nTab">
<!-- 标题开始 -->
<div class="TabTitle">
<ul id="myTab0">
<li class="active" onclick="nTabs(this,0);">全部全部</li>
<li class="normal" onclick="nTabs(this,1);">日志全部</li>
<li class="normal" onclick="nTabs(this,2);">咨询全部</li>
<li class="normal" onclick="nTabs(this,3);">相册全部</li>
<li class="normal" onclick="nTabs(this,4);">商城全部</li>
<li class="normal" onclick="nTabs(this,5);">社区全部</li>
<li class="normal" onclick="nTabs(this,6);">商城全部</li>
<li class="normal" onclick="nTabs(this,7);">社区全部</li>
</ul>
</div>
<!-- 内容开始 -->
<div class="TabContent">
<div id="myTab0_Content0"> <div class="boxa">fdfd</div></div>
<div id="myTab0_Content1" class="none"><a href="http://www.计源论坛 计源论坛</a></div>
<div id="myTab0_Content2" class="none"><a href="http://www.计源论坛22</a></div>
<div id="myTab0_Content3" class="none"><a href="http://www.计源论坛33</a></div>
<div id="myTab0_Content4" class="none"><a href="http://www.计源论坛4</a></div>
<div id="myTab0_Content5" class="none"><a href="http://www.计源论</a></div>
<div id="myTab0_Content6" class="none"><a href="http://www.计源论坛66</a></div>
<div id="myTab0_Content7" class="none"><a href="http://www.计源论坛77</a></div>
<div id="myTab0_Content8" class="none"><a href="http://www.计源论坛8</a></div>
</div>
</div>
<!-- 选项卡结束 -->
</div>
</center>
</body>
</html>