我的大腦它會爆炸..爲什麼這個不工作?我嘗試用時間間隔動畫幾個div的,並試圖寫更少的代碼,但是這不工作JQuery setTimeOut while循環
var cargaCont = function(){
o = 1;
var animacion = function(i){
$('#page2txt'+i).animate({
height:'20'
},200,function(){
$('#page2img'+i).animate({
left:'0',
right:'0'
},200,function(){
i++;
return i;
});
});
}
while(o < 3){
setTimeout(function(){o = animacion(o);},200);
}
}
你可以發佈標記嗎?並解釋什麼是所需的效果?這段代碼中有許多不必要的行。 – undefined 2012-07-19 07:21:44