var count = 0;
function openSlowly(obj,set){
if (set[count] && set[count].style.display=="none"){
set[count].style.display = "";
count+=1;
master_setTimeout(openSlowly,15,obj,set);
}else if(set[count] && set[count].style.display==""){
set[count].style.display = "none";
count+=1;
master_setTimeout(openSlowly,15,obj,set);
}else if(!set[count] && set[0].style.display=="none"){
obj = eval(obj);
obj.style.display="none";
}
}
function master_setTimeout(callback,timeout,param)
{
var args = Array.prototype.slice.call(arguments,2);
var _cb = function()
{
callback.apply(null,args);
} ;
window.setTimeout(_cb,timeout);
}
备忘JS
最新推荐文章于 2023-04-27 22:00:07 发布