银行软键盘代码

本文介绍了一种使用HTML、CSS及JavaScript实现的密码输入软键盘方法。通过网页表单元素结合自定义软键盘提高密码输入的安全性。文章提供了完整的代码示例及资源下载链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="javascript" type="text/javascript" src="keyboard.js"></script>/*引用JS*/
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>软键盘演示</title>
<link rel="stylesheet" href="style.css" type="text/css"> /*引用css*/
</head>

<body>
<form name="form1" method="post" action="">
  <input name="PASSWORD" type="password" id="PASSWORD" SIZE="12" maxLength="12" title="登录密码">
  <input type="button" value="密码软键盘" class="psbutton" onKeyDown="Calc.password.value=PASSWORD.value" onChange="Calc.password.value=PASSWORD.value" onclick= "password1=PASSWORD;showkeyboard();Calc.password.value=''">
</form>
</body>
</html>

style.css下载: https://www.bj.bank-of-china.com/webapp/gb/css/style.css

(为了达到最佳效果,请修改css里面图片的地址 eg:https://www.bj.bank-of-china.com/webapp/gb/images/button001.gif 

keyboard.js下载:https://www.bj.bank-of-china.com/webapp/gb/js/keyboard.js

转载于:https://www.cnblogs.com/kzhanglin/archive/2007/09/30/911896.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值