紧急啊,在线等紧急啊,在线等!!!
function TransIn(rootMenu,index)
{
if(index>=0)
alert(timer);
clearTimeout(timer);
index++;
rootMenu.style.backgroundColor=toHexColor(color[index][0],color[index][1],color[index][2]);
//alert(index);
if(index<=step)
timer=setTimeout("TransIn(rootMenu,index)", time/step);
}
这段代码为什么不能正确执行啊。。。
测试的结果alert不会弹出来