显示、隐藏密码
2006-07-01 00:00
337 查看
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>显示、隐藏密码-www.51windows.Net</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="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=\"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="\nwww.51windows.com\n海娃:jimao8@163.com"
alert(title+"\n("+time+")\n\n"+tips+"\n\n"+info)}
document.write("<button style='font:menu;position: absolute; top: 20; right: 10;' onclick=help();>Help</button >");
document.write("<button style='font:menu;position: absolute; top: 20; right: 50;' onclick=window.location='view-source:'+window.location.href;>源文件</button >")
</script>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>显示、隐藏密码-www.51windows.Net</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="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=\"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="\nwww.51windows.com\n海娃:jimao8@163.com"
alert(title+"\n("+time+")\n\n"+tips+"\n\n"+info)}
document.write("<button style='font:menu;position: absolute; top: 20; right: 10;' onclick=help();>Help</button >");
document.write("<button style='font:menu;position: absolute; top: 20; right: 50;' onclick=window.location='view-source:'+window.location.href;>源文件</button >")
</script>
</body>
</html>
相关文章推荐
- 利用UGUI实现 显示/隐藏密码 功能
- Android完美解决输入框EditText隐藏密码打勾显示密码问题
- WordPress用户登录框密码的隐藏与部分显示技巧
- Android完美解决输入框EditText隐藏密码打勾显示密码问题
- 实现edittext密码显示与隐藏
- login界面 checkbox选择显示或者隐藏密码
- jquery 实现密码框的显示隐藏 js
- 输入密码或金额的显示和隐藏(续)
- android程序代码实现改变字体颜色和输入密码的显示隐藏
- EditText设置密码隐藏和显示
- Android EditText密码的隐藏和显示功能
- 密码显示隐藏切换
- 基于JavaScript实现表单密码的隐藏和显示出来
- 自定义View之密码显示隐藏控件
- js 之 密码框 显示密码和隐藏密码
- Android:密码显示隐藏
- Android点击密码显示抬起密码隐藏效果
- Android登陆界面的简单实现(登陆背景渐变,密码点击隐藏与显示)
- 登录密码的显示与隐藏
- android的EditText显示隐藏密码时候的全角问题