完美解决 input密码提示功能
来源:互联网 发布:js全栈开发教程 编辑:程序博客网 时间:2024/06/06 00:59
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>钱运来|qianyunlai.com制作</title>
</head>
<style type="text/css">
</style>
<body>
<input name="" type="text" value="密码" class="inputText_1" id="tx" style="width:100px;" />
<input name="" type="password" style="display:none;width:100px;" id="pwd" />
<script type="text/javascript">
var tx = document.getElementById("tx"), pwd = document.getElementById("pwd");
tx.onfocus = function () {
if (this.value != "密码")
return;
this.style.display = "none";
pwd.style.display = "";
pwd.value = "";
pwd.focus();
}
pwd.onblur = function () {
if (this.value != "")
return;
this.style.display = "none";
tx.style.display = "";
tx.value = "密码";
}
</script>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>钱运来|qianyunlai.com制作</title>
</head>
<style type="text/css">
</style>
<body>
<input name="" type="text" value="密码" class="inputText_1" id="tx" style="width:100px;" />
<input name="" type="password" style="display:none;width:100px;" id="pwd" />
<script type="text/javascript">
var tx = document.getElementById("tx"), pwd = document.getElementById("pwd");
tx.onfocus = function () {
if (this.value != "密码")
return;
this.style.display = "none";
pwd.style.display = "";
pwd.value = "";
pwd.focus();
}
pwd.onblur = function () {
if (this.value != "")
return;
this.style.display = "none";
tx.style.display = "";
tx.value = "密码";
}
</script>
</body>
</html>
0 0
- 完美解决 input密码提示功能
- input 提示功能
- angular2解决Input记忆功能
- input使用lable实现提示功能
- input输入框内提示功能
- input输入框模糊提示功能
- input搜索提示功能--基于jquery框架
- Android打包签名忘记密码,完美解决
- 解决 input密码框自动填充
- 完美解决amzonui里面input和icon布局问题
- 在不同浏览器input密码的提示文字
- 关闭input文本输入框的自动提示功能
- HTML5----input-datalist输入框自动提示功能
- html中的input文本框完成格式错误提示功能
- Input框的智能提示下拉层功能
- 禁用input文本输入框的自动提示功能
- 解决谷歌浏览器input密码框自动填充
- 完美解决浏览ASP页面提示 500内部错误
- Codeforces Round #280 (Div. 2)A. Vanya and Cubes(简单计算)
- Maven学习总结(四)——Maven核心概念
- MVC中处理Json和JS中处理Json对象
- 聚合数据网站
- “数据结构与算法”有点难
- 完美解决 input密码提示功能
- C语言实现的环形队列
- LeetCode 152 Maximum Product Subarray
- CSS中的长度单位,宽度自适
- android Media Route Provider
- ARM+linux系统移植3G拨号上网收发短信(三)
- Maven学习总结(五)——聚合与继承
- 火狐浏览器打不开的修复方法和原因
- C++类禁止copy构造函数和copy assign操作符