1
function loadIgInnerPanelMenu(panelNum){
var delayTime = 300;
if($('#igto1 .btMenuShow').length === 0){
$('#igto1 .igInnerPanelBottomMenu').append(loadIgInnerBM(panelNum)).animate({'top':419},'fast',function(){}).addClass('btMenuShow').find('.btMenu').each(function(){
$(this).stop(false,true).animate({'top':0},delayTime);
delayTime+=100;
});
}
else{
// using inuse to prevent the botton quick switch
if(inuse === false){
$('#igto1 .igInnerPanelBottomMenu').append(loadIgInnerBM(panelNum)).find('.btMenu:gt(3)').each(function(){
$(this).stop(false,true).animate({'top':0},delayTime);
delayTime+=100;
});
}
}
alert(delayTime)
此功能是通過「點擊」事件中調用的。但在delayTime
值不設置回300
調用函數again.The後delayTime
值累積。
非常感謝!
謝謝。但爲什麼delayTime + = 100會累積delayTime值? – qinHaiXiang 2010-12-07 09:11:33