最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
输入正确进入密码保护页
时间:2022-06-30 09:18:17 编辑:袖梨 来源:一聚教程网
把如下代码加入区域中:
T LANGUAGE="JavaScript">
function password() {
var testV = 1;
var pass1 = prompt('请输入密码(密码是welcome):','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "welcome") {
alert('密码正确!');
break;
}
testV+=1;
var pass1 =
prompt('密码错误!请重新输入:');
}
if (pass1!="password" & testV ==3) history.go(-1);
return " ";
} document.write(password());
function password() {
var testV = 1;
var pass1 = prompt('请输入密码(密码是welcome):','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "welcome") {
alert('密码正确!');
break;
}
testV+=1;
var pass1 =
prompt('密码错误!请重新输入:');
}
if (pass1!="password" & testV ==3) history.go(-1);
return " ";
} document.write(password());
相关文章
- dnf手游天帷巨兽副本开放条件 05-16
- dnf手游格兰之森副本开放条件 05-16
- dnf手游阿法利亚副本开放条件 05-16
- 光遇5.16大蜡烛在哪里 05-16
- dnf手游亡者峡谷副本开放条件 05-16
- 光遇5.16季节蜡烛在哪里 05-16