脚本源代码:
<head>
<title>显示、隐藏密码</title>
<style>
body,input{font:menu}
</style>
</head>
<body>
<form method="POST" action="addcheck.asp" name="forms">
<span id=box><input type="password" name="password" size="20" value="www.cnwebshow.com"></span>
<span id=click><a href="javascript:ps()">显示密码</a></span>
<script language="JavaScript">
function ps(){
if (this.forms.password.type="password")
box.innerHTML="<input type="html" name="password" size="20" value="+this.forms.password.value+">";
click.innerHTML="<a href="javascript:txt()">隐藏密码</a>"}
function txt(){
if (this.forms.password.type="text")
box.innerHTML="<input type="password" name="password" size="20" value="+this.forms.password.value+">";
click.innerHTML="<a href="javascript:ps()">显示密码</a>"}
</script></form>
<script>
function help(){
title="显示、隐藏密码"
time="23:17 2002-8-17"
tips="显示、隐藏input中的密码,动态改为input的type值。在提示注册时就不用来两个输入框了:)"
info="w"
alert(title+"n("+time+")nn"+tips+"nn"+info)}
</script>
</body>
2021-07-09 14:57
2021-07-08 14:39
2021-07-08 14:39
2021-07-08 14:27
2021-07-08 14:26
2021-07-08 14:25
2021-07-07 15:33
2021-07-07 15:32
2021-07-07 15:31
2021-07-07 15:08
2021-07-07 15:06
2021-07-06 14:23
2021-07-06 14:22
2021-07-06 14:21