这样好像不行
帮你重新改了一下。可以调用多次的。
<script>
function Tb(o,n,t,s){
for(g=1;g<=n;g++){
document.all("t_"+o+"_"+g).className="";
document.all("s_"+o+"_"+g).className="itrade_1";
}
if(s.className=="tab_2"){
t.className="tab_1";
s.className="itrade_1";
}
else{
t.className="tab_2";
s.className="itrade_2";
}
}
</script>
<li class="tab_2" id="t_1_1" onmouseover="Tb(1,4,t_1_1,s_1_1);"><a href="">求购</a></li>
<li class="tab_1" id="t_1_2" onmouseover="Tb(1,4,t_1_2,s_1_2);"><a href="">供应</a></li>
<li class="tab_1" id="t_1_3" onmouseover="Tb(1,4,t_1_3,s_1_3);"><a href="">招商</a></li>
<li class="tab_1" id="t_1_4" onmouseover="Tb(1,4,t_1_4,s_1_4);"><a href="">招商</a></li>
<div id="s_1_1" class="itrade_2">1</div>
<div id="s_1_2" class="itrade_1">2</div>
<div id="s_1_3" class="itrade_1">3</div>
<div id="s_1_4" class="itrade_1">4</div>
页:
1
[2]