最新下载
热门教程
- 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());
相关文章
- 星痕共鸣巨刃守护者岩盾流怎么玩 巨刃守护者岩盾流玩法推荐 07-19
- 沙丘觉醒高级服装制造机有什么用 功能及制作要求介绍 07-19
- 十大比特币交易排行榜2025 国内十大数字货币交易所 07-19
- 星痕共鸣森语者愈合流怎么玩 森语者愈合流玩法推荐 07-19
- 《QQ》恢复单个好友聊天记录方法 07-19
- 绝区零2.1新称号有哪些-2.1新称号获取方法大全 07-19