|
说明: 仿VB密码
效果: 点这里在新窗口中看效果!
代码:
<head>
<title>测试</title>
<script language=vbs>
cont=1
sub myButton_Onclick()
if mytext.value="ntcComCn" then location="http://www.ntc.com.cn"
else msgbox "密码错误!正确密码为ntcComCn":cont=cont+1
if cont>3 then msgbox"对不起!本页内容你不能看。":window.close
end sub
</script>
</head>
<body>
<br>
<br>
<center>请输入密码:
<input name="myText" type="password"
size=10 maxlength=8>
<input type="button" name="myButton"
value="确定" >
</center>
</body>
</html>
|