📄 index.html
字号:
<!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" />
<title>盘古虚拟键盘V1.0 </title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
#LbInfo {
position:absolute;
left:10;
top:234px;
width:60%;
height:60;
z-index:2;
}
-->
</style>
</head>
<script language="javascript">
//设置要控制的输入框的ID
var targetName="psd";
function inputvalue(KeyValue)
{
var targetBox=document.getElementById(targetName);
targetBox.value+=KeyValue;
//targetBox.value+="\\"
}
function delvalue()
{
var targetBox=document.getElementById(targetName);
targetBox.value = targetBox.value.substring(0, (targetBox.value.length-1));
}
//设置输入框为不可以写,强制要求使用虚拟键盘输入;
function disableTargetBox()
{
var targetBox=document.getElementById(targetName);
targetBox.disabled="disabled";
}
//显示隐藏虚拟键盘
function ShowHidenKeyBoard(){
var targetLayer=document.getElementById("LKeyBoard");
if(targetLayer.style.display!="none")
targetLayer.style.display="none";
else
targetLayer.style.display=""
}
</script>
<body onload="disableTargetBox()">
<div id="LKeyBoard" style="position:absolute; left:176px; top:43px; width:55px; height:29px; z-index:1; display:;">
<div style="width:331px; background-color:#8DB9E1; height:20px; vertical-align:middle; padding-top:5px; color:#FFFFFF"> 盘古虚拟键盘V1.0
<div style="position:absolute; left:310px; right:0px"><img src="Closebtn.gif" width="15" height="15" onclick="document.getElementById('LKeyBoard').style.display='none'" /></div>
</div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="331" height="106">
<param name="movie" value="KeyBoardFree.swf" />
<param name="quality" value="high" />
<embed src="KeyBoardFree.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="331" height="106"></embed>
</object>
</div>
<div id="LbInfo">
<p><strong>说明:</strong><font color="#FF0000">使用虚拟键盘 密码输入更安全</font> <a href="VirtualKeyboard.rar" target="_blank">下载<br />
</a><br />
虚拟键盘是一款用于Web密码输入的Flash控件,运用虚拟键盘可以有效防止间谍软件截取键盘按键记录,防止密码被盗用;</p>
<p> 把密码输入框的可用性设置为false;强制要求使用虚拟键盘输入,即使没有验证码,也可以防止其它暴力破解程序。</p>
<p> 本控件模拟键盘输入,支持大小写,支持特殊字符,随机打乱布局,本组件兼容性好,几乎不用安装插件,希望本组件能对你的web开发带来帮助。</p>
<p> 注意:<font color="#66FF00">配置时,请把本页面放在本地站点中,这样才能正常浏览。</font><br />
演示版本除不支持SHIFT键,其它均可正常使用:<br />
<img src="KyeboardB.gif" alt="按住SHIFT的状态" width="331" height="131" /></p>
<p>价格:50元/套</p>
<p align="right"> 作者:千秋学 QQ:13285235 Email:13285235@qq.com</p>
</div>
测试输入框:
<input name="psd" type="text" id="psd" />
<a href="#"><img src="KeyIco.gif" width="18" height="15" border="0" onclick="ShowHidenKeyBoard()" /></a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -