就是在settimeout那出错了,弄了半天了。
- JScript code
<script language="javascript"> <!-- function disp(x,h) { var mn=document.getElementById("maxNav_"+x); var xn=document.getElementById("m"+x); if (mn.style.display=="") { mn.style.display="none"; mn.style.height="0px"; xn.className="maxType"; } else { for (var m=1;m<=3;m++) { document.getElementById("maxNav_"+m).style.display="none"; document.getElementById("maxNav_"+m).style.height="0px"; document.getElementById("m"+m).className="maxType"; } mn.style.display=""; xn.e:'paddin
------解决方案--------------------
function dispa() {
i+=5;mn.style.height=i+"px";
if (i<120){setTimeout(function(){
dispa();
},1000)}
}