链接类

VML

按钮类

标题类

表单类

表格类

菜单类

窗口类

对象类

滚动条

键盘类

框架类

例子类

模拟类

日期类

色彩类

鼠标类

数学类

图片类

文字类

下拉框

样式类

游戏类

状态栏

资料类

字幕类

其它类

 ·onkeydown与...
 ·软键盘
 ·屏蔽鼠标右键、Ctr...
 ·键盘的keyCode
 ·键盘代码
您当前位置:好素材首页 -> 网页特效 -> 键盘类
查看信息

模拟键盘
好素材网 www.HaoSc.com 02月22日 11:49

[查看演示]  源码如下
----------------------------------------------------------
<!-- This script has been in the http://www.javascripts.com Javascript Public Library! -->
<!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. -->
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled Normal Page-www.51windows.Net</title>
</head>

<body>
<script Language="Javascript">
<!--

// Script by Evan Nemerson
//
// E-mail: evangnem@icqmail.com
// Web Site: http://SitesByEvan.8m.com/
// Voice Mail: (760)708-6400 x2871
//
// This script may be reproduced and/or re-distributed infinitly
// so long as all comments are left intact and the script is not
// modified without express written consent of the author.

function a()
{
var text=document.form.text.value
document.form.text.value=text + "A";
}
function b()
{
var text=document.form.text.value
document.form.text.value=text + "B";
}
function c()
{
var text=document.form.text.value
document.form.text.value=text + "C";
}
function d()
{
var text=document.form.text.value
document.form.text.value=text + "D";
}
function e()
{
var text=document.form.text.value
document.form.text.value=text + "E";
}
function f()
{
var text=document.form.text.value
document.form.text.value=text + "F";
}
function g()
{
var text=document.form.text.value
document.form.text.value=text + "G";
}
function h()
{
var text=document.form.text.value
document.form.text.value=text + "H";
}
function i()
{
var text=document.form.text.value
document.form.text.value=text + "I";
}
function j()
{
var text=document.form.text.value
document.form.text.value=text + "J";
}
function k()
{
var text=document.form.text.value
document.form.text.value=text + "K";
}
function l()
{
var text=document.form.text.value
document.form.text.value=text + "L";
}
function m()
{
var text=document.form.text.value
document.form.text.value=text + "M";
}
function n()
{
var text=document.form.text.value
document.form.text.value=text + "N";
}
function o()
{
var text=document.form.text.value
document.form.text.value=text + "O";
}
function p()
{
var text=document.form.text.value
document.form.text.value=text + "P";
}
function q()
{
var text=document.form.text.value
document.form.text.value=text + "Q";
}
function r()
{
var text=document.form.text.value
document.form.text.value=text + "R";
}
function s()
{
var text=document.form.text.value
document.form.text.value=text + "S";
}
function t()
{
var text=document.form.text.value
document.form.text.value=text + "T";
}
function u()
{
var text=document.form.text.value
document.form.text.value=text + "U";
}
function v()
{
var text=document.form.text.value
document.form.text.value=text + "V";
}
function w()
{
var text=document.form.text.value
document.form.text.value=text + "W";
}
function x()
{
var text=document.form.text.value
document.form.text.value=text + "X";
}
function y()
{
var text=document.form.text.value
document.form.text.value=text + "Y";
}
function z()
{
var text=document.form.text.value
document.form.text.value=text + "Z";
}
function space()
{
var text=document.form.text.value
document.form.text.value=text + " ";
}
// -->
</SCRIPT>
</head>

<body bgcolor="#FFFFFF">

<form name="form">
<p align="center"><textarea name="text" rows="10" cols="50"></textarea></p>
<p align="center"><input type="button" name="B1" value=" Q " OnClick="q()"><input
type="button" name="B2" value="W" OnClick="w()"><input type="button"
name="B3" value="E" OnClick="e()"><input type="button" name="B4" value="R" OnClick="r()"><input
type="button" name="B5" value="T" OnClick="t()"><input type="button"
name="B6" value="Y" OnClick="y()"><input type="button" name="B7" value="U" OnClick="u()"><input
type="button" name="B8" value=" I " OnClick="i()"><input type="button"
name="B9" value="O" OnClick="o()"><input type="button" name="B10" value="P" OnClick="p()"></p>
<p align="center"><input type="button" name="B11" value="A" OnClick="a()"><input
type="button" name="B12" value="S" OnClick="s()"><input type="button"
name="B13" value="D" OnClick="d()"><input type="button" name="B14"
value="F" OnClick="f()"><input type="button" name="B15" value="G" OnClick="g()"><input
type="button" name="B16" value="H" OnClick="h()"><input type="button"
name="B17" value="J" OnClick="j()"><input type="button" name="B18"
value="K" OnClick="k()"><input type="button" name="B19" value="L" OnClick="l()"></p>
<p align="center"><input type="button" name="B20" value="Z" OnClick="z()"><input
type="button" name="B21" value="X" OnClick="x()"><input type="button"
name="B22" value="C" OnClick="c()"><input type="button" name="B23"
value="V" OnClick="v()"><input type="button" name="B24" value="B" OnClick="b()"><input
type="button" name="B25" value="N" OnClick="n()"><input type="button"
name="B26" value="M" OnClick="m()"></p>
<p align="center"><input type="button" name="B27"
value=" " OnClick="space()"></p>
<INPUT TYPE="hidden" name="hidden">
</form>
</body>
</html>
</script>
</body>
</html>

<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div>


此信息共 1 页 [1]