当前位置: 主页->网页特效专栏->游戏类->测试您打字的速度
栏目导航
网页特效
  典型特效 状态栏
  游戏类 页面背景
  页面特效 页面导航
  文本操作 文本特效
  图形特效 鼠标特效
  时间日期 密码类
  浏览相关 警告对话
  技巧类 计数转换
  测试搜索 代码生成
  播放音乐 按钮特效
  系统相关 链接特效
  黑客性质 相关特效
  窗口特效 其它特效
最新更新
·一个正在跳舞的BABY
·速度与准确性的训练
·剪子、包袱、锤游戏
·速算训练
·简单的走迷宫游戏
·鼠标点击速度测试游戏
·试试运气找好东东!
·射击游戏 小蜜蜂
·填空游戏 (不简单哟)
·21点(黑杰克)
热点文章
 
 
 
 
 
 
 
 
 
 

测试您打字的速度

http://www.yy0736.com 加入日期:2005-03-06 15:00:00 点击数:

查看:[大字体 中字体 小字体]

说明: 测试您打字的速度

效果: 点这里看效果!

代码:

<!--网页特效代码由驿站http://js.jojoo.net提供!-->

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

msg = new Array("Practicing with your typing can greatly help your overall computer skills.",

"A new computer is sold in the US every hour!",

"When do birds migrate from North to South?",

"Perplexing phrases, like this one, are tougher to type.")

word = 10

function m() {

msg = new Array("Practicing with your typing can greatly help your overall computer skills.",

"A new computer is sold in the US every hour!",

"When do birds migrate from North to South?",

"Perplexing phrases, like this one, are tough to type.")

word = 10

}

function e() {

msg = new Array("If you can correctly, and quickly, type this perplexing sentence, you are one superb typist!",

"You are one superb typist if you can correctly, and quickly, type this long phrase.",

"I believe you're a good typist, so I believe you will correctly copy this statement!",

"Because this is not a fairly simple phrase, could you swiftly, and precisely, copy it?")

word = 15

}

function s() {

msg = new Array("Computers are the medium of the future.",

"Can you type this phrase rather quickly?",

"Who is the President of the US?",

"I believe that you can type well!")

word = 7

}

function beginIt() {

randNum = Math.floor((Math.random() * 10)) % 4

msgType = msg[randNum]

day = new Date();

startType = day.getTime();

document.theForm.given.value = msgType

document.theForm.typed.focus();

document.theForm.typed.select();

}

function cheat() {

alert("对不起,这里的内容你不能改变!!");

document.theForm.typed.focus();

}

function stopIt() {

dayTwo = new Date();

endType = dayTwo.getTime();

totalTime = ((endType - startType) / 1000)

spd = Math.round((word/totalTime) * 60)

if (document.theForm.typed.value == document.theForm.given.value) {

alert("\n你输入了 " + word + " 个字符,在 "

+ totalTime + " 秒内, 速度为每分钟 " + spd + " 个字符!")

}

else {

alert("你输入有错,但是你每秒钟输入 " + spd + " 个字符.")

}

}

// End -->

</SCRIPT><FORM name="theForm">

<TABLE BORDER=3 CELLSPACING=0 CELLPADDING=0>

<TR>

<TD>你是个...</TD>

<TD align=center><input type=radio name="sme" value="Beginner" onClick="s()" checked>初级者

<input type=radio name="sme" value="Novice" onClick="m()">中级者

<input type=radio name="sme" value="Expert" onClick="e()">高级者</TD>

</TR>

<TR><TD colspan=2><BR>

<center><input type=button value="开始测试" name="start" onClick="beginIt()"></center><P>

<textarea name="given" cols=53 rows=3 wrap=on onFocus="cheat()">

作者:佚名 来源: 网上转帖  

   

上篇:猜数字游戏   下篇:爱情游戏测试


[夜鹰论坛] [我要留言] [关闭窗口] [ ][TOP]

此文章最新评论(不超过十条)
■评论此文章 ( 有问题请去夜鹰论坛发帖 )
共有评论: 查看全部评论 姓名:
【 声明 】 您所发表的言论将被众多网友阅读,因此,您所发表的言论应不违反中国法律,不违背一般的道德原则,否则,您必须对您的不当言论引发的一切不良后果负责;此外,我们的管理员有权删除您发表的不当言论,谢谢合作!