炒粉拥有改变世界的力量
2015-12-10 17:12
for(var i = 0; i < allli.length; i++) {
allli[i].index = i;
allli[i].onmouseover = function() {
for(var i = 0; i < allli.length; i++) {
allli[i].className = "#ul1 li";
}
this.className = "liactive";
for(var j = 0; j <alltittle.length; j++) {
alltittle[j].className = "title hidden";
}
alltittle[this.index].className = "title active";
}
}
JavaScript进阶篇
468061 学习 · 21891 问题
相似问题