📄 up.js
字号:
//----------------------------------------------------------------------------
//FreeXproxy Version: beta 2
//Author: A&Y <AyWeb@msn.com>
//
//Script Function:
// Automatic Gain Proxy List.
//----------------------------------------------------------------------------
document.write('<div id="up_m"><table id="up_t"><tr><td> Updata:</td><td ><div id="up_p"><div id="up_x"></div></div></td></tr></table></div>');
function hide(){
window.location = "index.php";
up_m.style.display = 'none';
}
function up(i){
var Obj = null;
try{
Obj = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try {
Obj = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(oc) {
Obj = null;
}
}
if(!Obj && typeof XMLHttpRequest != "undefined"){
Obj = new XMLHttpRequest();
}
Obj.open("POST", "updata.php?" + i, false);
Obj.send();
var Str = Obj.responseText.split(",");
Str[0] = new Number(Str[0]);
Str[1] = new Number(Str[1]);
var Progress = (Str[1] > 0) ? (100 / Str[0] * Str[1]) : 100;
up_x.style.width = Progress +"%";
up_m.style.display = 'block';
if(Str[1] > 0){
setTimeout("up(" + (Str[1] + 1) + ")", 10);
}else{
setTimeout("hide()", 2000);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -