输入密码才能查看代码


 

<html>
<head>
<title>测试</title>
<script language=vbs>
cont=1
sub myButton_Onclick()
    if mytext.value="qr2006" then location="http://qr2006.googlepages.com" else msgbox "密码错误!请输入正确密码!":cont=cont+1
    if cont>3 then msgbox"对不起!本页内容你不能看。":window.close
end sub
</script>
</head>
<body>
<center>请输入密码:  
<input name="myText" type="password" size=10 maxlength=8>
   
<input type="button" name="myButton" value="确定" >
</center>
</body>
</html>