1个回答
2012-03-25
展开全部
代码第三行少了个/,应该是:
<html>
<head>
<title></title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<style type="text/css">
*
html,body
UL
.ttl
.ctt
.w936
.tb_
.tb_ ul
.tb_ li
.normaltab
.hovertab
.dis
.undis
</style>
<script type="text/javascript" language="javascript">
function g(o)
function HoverLi(n){
for(var i=1;i<=6;i++)g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab';
}
</script>
</head>
<body>
<div class="w936">
<div id="tb_" class="tb_">
<ul>
<li id="tb_1" class="hovertab" onMouseOver="x:HoverLi(1);">
1</li>
<li id="tb_2" class="normaltab" onMouseOver="i:HoverLi(2);">
2</li>
<li id="tb_3" class="normaltab" onMouseOver="a:HoverLi(3);">
3</li>
<li id="tb_4" class="normaltab" onMouseOver="o:HoverLi(4);">
4</li>
<li id="tb_5" class="normaltab" onMouseOver="g:HoverLi(5);">
5</li>
<li id="tb_6" class="normaltab" onMouseOver="z:HoverLi(6);">
6</li>
</ul>
</div>
<div class="ctt">
<div class="dis" id="tbc_01">1</div>
<div class="undis" id="tbc_02">2</div>
<div class="undis" id="tbc_03">3</div>
<div class="undis" id="tbc_04">4</div>
<div class="undis" id="tbc_05">5</div>
<div class="undis" id="tbc_06">6</div>
</div>
</div>
</body>
</html>
另外,注释不能加得太多了
<html>
<head>
<title></title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<style type="text/css">
*
html,body
UL
.ttl
.ctt
.w936
.tb_
.tb_ ul
.tb_ li
.normaltab
.hovertab
.dis
.undis
</style>
<script type="text/javascript" language="javascript">
function g(o)
function HoverLi(n){
for(var i=1;i<=6;i++)g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab';
}
</script>
</head>
<body>
<div class="w936">
<div id="tb_" class="tb_">
<ul>
<li id="tb_1" class="hovertab" onMouseOver="x:HoverLi(1);">
1</li>
<li id="tb_2" class="normaltab" onMouseOver="i:HoverLi(2);">
2</li>
<li id="tb_3" class="normaltab" onMouseOver="a:HoverLi(3);">
3</li>
<li id="tb_4" class="normaltab" onMouseOver="o:HoverLi(4);">
4</li>
<li id="tb_5" class="normaltab" onMouseOver="g:HoverLi(5);">
5</li>
<li id="tb_6" class="normaltab" onMouseOver="z:HoverLi(6);">
6</li>
</ul>
</div>
<div class="ctt">
<div class="dis" id="tbc_01">1</div>
<div class="undis" id="tbc_02">2</div>
<div class="undis" id="tbc_03">3</div>
<div class="undis" id="tbc_04">4</div>
<div class="undis" id="tbc_05">5</div>
<div class="undis" id="tbc_06">6</div>
</div>
</div>
</body>
</html>
另外,注释不能加得太多了
追问
好像不是这个问题还有其他可能?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询