日期:2014-05-16 浏览次数:20315 次
function me(object) { for(int i=0;i<27;i++) { if(i == object || i == object+1 || i == object-1 ) { var aa=document.getElementById("aa_"+i); aa.ClassName = "aaa"; } else { var bb=document.getElementById("aa_"+i); aa.ClassName = "bbb"; } } }
if(document.getElementById("aa_"+i)){ document.getElementById("aa_"+i).className = "aaa"; } if(document.getElementById("aa_"+i)){ document.getElementById("aa_"+i).className = "bbb"; }