缺少对象的问题
求高手帮助!!!错误就在else后面..........HEAD><TITLE></TITLE>
<SCRIPT language=javascript defer="true">
function qiehuan(num){
for(var id = 0;id<=9;id++)
{
var titab1=document.getElementById("qh_con"+id);
var titab2=document.getElementById("mynav"+id);
if(id==num)
{
titab1.style.display="block";
titab2.className="nav_on";
}
else
{
titab1.style.display="none"; 错误就出在这里,老是缺少对象
titab2.className="";
}
}
}
</SCRIPT>
<LINK rel=stylesheet type=text/css href="images/dedecms.css" media=screen>
<META name=GENERATOR content="MSHTML 8.00.6001.18812">
</HEAD>
<BODY class=index><LINK rel=stylesheet type=text/css
href="images/css.css"
media=screen>
...........................
<DIV id=menu_out>
<DIV id=menu_in>
<DIV id=menu>
<UL id=nav>
<LI><A id=mynav0 class=nav_on onmouseover=javascript:qiehuan(0)
href="http://www. target=_blank><SPAN>首页</SPAN></A></LI>
<LI class=menu_line></LI>
<LI><A id=mynav1 class=nav_off onmouseover=javascript:qiehuan(1)
href="http://www.财经资讯/"
target=_blank><SPAN>财经资讯</SPAN></A></LI>
<LI class=menu_line></LI>
<LI><A id=mynav2 class=nav_off onmouseover=javascript:qiehuan(2)
href="http://www.会计服务/"
target=_blank><SPAN>会计服务</SPAN></A></LI>
<LI class=menu_line></LI>
</UL>
<DIV id=menu_con>
<DIV style="DISPLAY: block" id=qh_con0>
<UL>
<LI class=STYLE1></LI></UL></DIV>
<DIV style="DISPLAY: none" id=qh_con1>
<UL>
<LI><A href="http://www.资讯动态/财税资讯/"><SPAN>财税资讯</SPAN></A></LI>
<LI><A href="http://www.资讯动态/财会资讯/"><SPAN>财会资讯</SPAN></A></LI>
<LI><A
href="http://www.资讯动态/财经资讯/"><SPAN>财经资讯</SPAN></A></LI></UL></DIV>
<DIV style="DISPLAY: none" id=qh_con2>
<UL>
<LI><A
href="http://www.分行业会计/房地产/房地产法规/"><SPAN>房地产法规</SPAN></A></LI>
<LI><A
href="http://www.分行业会计/房地产/地产会计实务/"><SPAN>地产会计实务</SPAN></A></LI>
<LI><A
href="http://www.分行业会计/房地产/地产税法实务/"><SPAN>地产税法实务</SPAN></A></LI>
<LI><A
href="http://www.分行业会计/房地产/土地增值税汇算清缴/"><SPAN>土地增值税汇算清缴</SPAN></A></LI>
<LI><A
href="http://www.分行业会计/房地产/房地产税收筹划/"><SPAN>房地产税收筹划</SPAN></A></LI>
<LI><A
href="http://www.分行业会计/房地产/房地产案例解析/"><SPAN>房地产案例解析</SPAN></A></LI></UL></DIV>
</DIV></DIV></DIV></DIV>
</BODY></HTML>