谁能给一个网页验证密码登陆的代码

来源:百度知道 编辑:UC知道 时间:2024/06/19 09:20:18
就是 在登陆也面中输入不用的验证码跳转到不同的网站的程序
就是类似这个页面

http://www.1feel.com/index_xmys.htm

<html>
<head>
<title>恶搞网页</title>
<script language="vbscript">
sub button1_onclick
r=inputbox("请输入网页访问密码","密码输入框")
if r = "123456" then
window.location.replace("http://www.baidu.com")
else
msgbox "密码错误" ,vbcritical + vbokonly + vbdefautbutton1, "错误"
end if
end sub
</script>
</head>
<body>
<form><input name="button1" type="button" value="点击输入密码"></form>
</body>
</html>

照例多写几个,就可以登陆不同的网站了