|
比如以下有该代码:
//【快速增加图标演示目录】
function Add_menuList(){
var $=function(x){return document.getElementById(x)};
window.index=0;
if(typeof(list)!="object"||list.length==0){
if(confirm("您确定增加图标演示目录吗?")!=true) return;
window.list = new Array();
list.push(["00[S] 自定义区-重要目录-系统设置-不可删除","*",duser,"000000"]);
list.push(["00[A] 演示:设置使用A图标","","","011000"]);
list.push(["00[B] 演示:设置使用B图标","","","011000"]);
list.push(["00[C] 演示:设置使用C图标","","","011000"]);
list.push(["00[D] 演示:设置使用D图标","","","011000"]);
list.push(["00[E] 演示:设置使用E图标","","","011000"]);
list.push(["00[H] 演示:设置使用H图标","","","011000"]);
list.push(["00[M] 演示:默认使用M图标","","","011000"]);
list.push(["00[N] 演示:上锁可用N图标","","","011000"]);
list.push(["00[Q] 演示:设置使用Q图标","","","011000"]);
list.push(["00[V] 演示:设置使用V图标","","","011000"]);
list.push(["00[X] 演示:设置使用X图标","","","011000"]);
list.push(["00[Y] 演示:设置使用Y图标","","","011000"]);
list.push(["00[S] 演示:设置使用S图标","","","011000"]);
};
//快速增加目录
window.Add_MenuList=function(){
$("dzx").scrollTop= $("sxts").offsetTop-$("dzx").offsetHeight+30;
if(/目录总数已经超过限定/.test(frxcx.zx.toString())==true){
alert("目录总数已经达到"+$("menuList").children.length+"个上限!\n\r无法再继续增加网盘目录了!");
$("frxcx").onreadystatechange=null;window.list=new Array();try{setmenulist()}catch(e){};return;
};
if(/√/i.test($("mm4").innerHTML)!=true){
alert("请登陆管理区后再进行操作!");$("frxcx").onreadystatechange=null;window.list=new Array();return;
};
if(index < list.length){
var M=$("menuList").children.length;var x="00"+(M+1);x=x.substr(x.length-2);var A=list[index];
$("frxcx").onreadystatechange=function(){if(this.readyState=="complete"){setTimeout("Add_MenuList()",200)}};//绑定事件
readxml("xzml",A[0].replace(/^(\d{2})/,x), (A[1]?A[1]:""), (A[2]?A[2]:""), (A[3]?A[3]:"")); index++;
}else{
window.list=new Array();//请空数组
$("frxcx").onreadystatechange=null;
try{setmenulist()}catch(e){};//设置目录图标
}
};
Add_MenuList();
};
Add_menuList()
-------------------分割线---------------------
如何让下面的命令每个代码之间延迟2秒执行啊,是代码与代码之间延迟:
list.push(["00[S] 自定义区-重要目录-系统设置-不可删除","*",duser,"000000"]);
list.push(["00[A] 演示:设置使用A图标","","","011000"]);
list.push(["00[B] 演示:设置使用B图标","","","011000"]);
list.push(["00[C] 演示:设置使用C图标","","","011000"]);
list.push(["00[D] 演示:设置使用D图标","","","011000"]);
list.push(["00[E] 演示:设置使用E图标","","","011000"]);
list.push(["00[H] 演示:设置使用H图标","","","011000"]);
list.push(["00[M] 演示:默认使用M图标","","","011000"]);
list.push(["00[N] 演示:上锁可用N图标","","","011000"]);
list.push(["00[Q] 演示:设置使用Q图标","","","011000"]);
list.push(["00[V] 演示:设置使用V图标","","","011000"]);
list.push(["00[X] 演示:设置使用X图标","","","011000"]);
list.push(["00[Y] 演示:设置使用Y图标","","","011000"]);
list.push(["00[S] 演示:设置使用S图标","","","011000"]);
|
|