显示、隐藏密码

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="Microsoft FrontPage 4.0">
<meta content="FrontPage.Editor.Document">
<title>显示、隐藏密码-</title>
<style>
body,input{font:menu}
</style>
</head>
<body>
<form method="POST" action="addcheck.asp">
<span id=box><input type="password" size="20" value="51windows.com"></span>
<span id=click><a href="javascript:ps()">显示密码</a></span>
<script language="JavaScript">
<!--51windows.com:海娃 23:17 2002-8-17-->
function ps(){
if (this.forms.password.type="password")
box.innerHTML="<input type=https://www.jb51.net/article/\"html\" name=https://www.jb51.net/article/\"password\" size=https://www.jb51.net/article/\"20\" value="+this.forms.password.value+">";
click.innerHTML="<a href=https://www.jb51.net/article/\"javascript:txt()\">隐藏密码</a>"}
function txt(){
if (this.forms.password.type="text")
box.innerHTML="<input type=https://www.jb51.net/article/\"password\" name=https://www.jb51.net/article/\"password\" size=https://www.jb51.net/article/\"20\" value="+this.forms.password.value+">";
click.innerHTML="<a href=https://www.jb51.net/article/\"javascript:ps()\">显示密码</a>"}
</script></form>
<script>
function help(){
title="显示、隐藏密码"
time="23:17 2002-8-17"
tips="显示、隐藏input中的密码,动态改为input的type值。在提示注册时就不用来两个输入框了:)"
info="\n\n海娃:jimao8@163.com"
alert(title+"\n("+time+")\n\n"+tips+"\n\n"+info)}
document.write("<button onclick=help();>Help</button >");
document.write("<button onclick=window.location='view-source:'+window.location.href;>源文件</button >")
</script>
</body>
</html>

相关文章

最新评论

站长推荐

正版 Windows 10

正版Windows 10 家庭/专业版,操作系统限时抢购[¥1088→¥248]

站长推荐

正版 Office 软件

Microsoft Office 2016/2019/365 正版最低价仅需[ ¥148元]

大家感兴趣的内容

最近更新的内容

常用在线小工具

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wjjxyg.html