js实现银行弹出软键盘密码框效果

1个月前 (04-17 13:40)阅读40回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值5114
  • 级别管理员
  • 主题1022
  • 回复2
楼主

实用js软键盘特效代码,当用户点击输入框后弹出显示,弹出的密码框上面带有退格和清除功能。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>js实现银行弹出软键盘密码框效果_武鸣人</title>
<style type="text/css">
<!--
*{font-size:12px;font-family:verdana;color:#339933;}
#contain{margin-left:64px;padding:3px;padding-bottom:7px;border:1px solid #339933;border-top:7px solid #339933;width:125px;height:145px;display:none;}
[xmlns] #contain{padding-left:5px;width:113px;}
.www_wuming_ren_box,.text{float:left;border:1px solid #339933;border-top:2px solid #339933;}
.www_wuming_ren_box{margin:5px;}
.text{margin:5px 4px;}
a{padding:4px 8px;text-decoration:none;line-height:2;}
a:hover{background-color:#ACE89B;}
.text a{padding:5px 4px 4px 3px;}
-->
</style>
<SCRIPT language=javascript>
function chk_input_www_wuming_ren() 
  { 
 var pwd=document.all.pwd.value;
   if(pwd=="")
   {
    alert("请输入密码!"); 
    document.all.pwd.focus(); 
    return false;    
   }  
   return true;
  }
  </SCRIPT>
  <script type="text/javascript">
function rand() {
 return Math.floor(Math.random()*10);
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
var rangenum = new Array();
var tem;
for (var i = 0; i<10; i++) {
 rangenum.push(i);
}
for (var i = 0; i<10; i++) {
 var a = rand();
 var b = rand();
 tem = rangenum[a];
 rangenum[a] = rangenum[b];
 rangenum[b] = tem;
}
function creatnums() {
 for (i=0; i<rangenum.length; i++) {
  document.writeln("<div class=\"www_wuming_ren_box\" ><a href=\"#\"onclick=\"input("+rangenum[i]+")\">"+rangenum[i]+"</a></div>");
 }
 document.writeln("<div class=\"text\"><a href=\"#\" onclick='input(-1)'>退格</a><a href=\"#\" onclick=\"clearinput()\">清除</a></div>");
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
function input(i) {
    var pwd=document.form.pwd.value;
 if (pwd.length<8||i == '-1') {
  if (i == '-1') {
   document.form.pwd.value = pwd.substring(0,pwd.length-1);
  } else {
   document.form.pwd.value = pwd+i;
  }
 }
 else{document.getElementById('contain').style.display="none";}
}
function clearinput() {
   document.form.pwd.value="";
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
function show_wwwwumingren(){
   document.getElementById('contain').style.display="block";
}
function hidden_www_wuming__ren(){
   document.getElementById('contain').style.display="none";
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
function noinput(){
var pwd=document.form.pwd.value;
document.form.pwd.value = pwd.substring(0,pwd.length-2);
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
 </script>
 </head>
 <body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
 <form name="form" action="https://www.wuming.ren" target="_blank">
   请输入密码
 <input type="password" name="pwd" onclick="show_wwwwumingren()" onkeydown="return false;" size="8">
 <input type="submit" value=" OK " onclick="return chk_input_www_wuming_ren();" onmouseover="hidden_www_wuming__ren()">
</form>
   <div id="contain">
  <script type="text/javascript">
  creatnums();
  </script>
  </div>
 </body>
</html>


0
0
收藏0
回帖

js实现银行弹出软键盘密码框效果 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息