源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

页面使用密码保护代码

  • 时间:2021-10-08 07:19 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:页面使用密码保护代码
[b]代码如下所示:[/b] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>密码保护相应页面</title> </head> <body> <SCRIPT LANGUAGE="JavaScript"> function password() { var testV = 1; var pass1 = prompt('请输入密码(密码是shenlong):',''); while (testV < 3) { if (!pass1) history.go(-1); if (pass1 == "shenlong") { alert('密码正确!'); break; } testV+=1; var pass1 = prompt('密码错误!请重新输入:'); } if (pass1!="password" & testV ==3) history.go(-1); return " "; } document.write(password()); </SCRIPT> </body> </html>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部