function password() {
var testV = 1;
var pass1 = prompt('请输入密码( ):','');
while (testV < 3) {
if (pass1 == "welcome"){
alert('密码正确!');
location.href="http://zhezhile.51.net";
break;
}
testV+=1;
if((pass1 = prompt('密码错误!请重新输入:'))=="welcome"){
alert('密码正确!');
location.href="http://zhezhile.51.net";
break;
}
}
return "no";
}
if (password()=="no")
document.write("您没有访问该网站的权限!请回吧!!!");
var testV = 1;
var pass1 = prompt('请输入密码( ):','');
while (testV < 3) {
if (pass1 == "welcome"){
alert('密码正确!');
location.href="http://zhezhile.51.net";
break;
}
testV+=1;
if((pass1 = prompt('密码错误!请重新输入:'))=="welcome"){
alert('密码正确!');
location.href="http://zhezhile.51.net";
break;
}
}
return "no";
}
if (password()=="no")
document.write("您没有访问该网站的权限!请回吧!!!");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货