·用户注册
·用户登陆
·用户中心
首页
+
网络学院
+
网页特效
+
实用工具
+
网络资源
+
字体下载
+
娱乐世界
+
时尚前沿
+
图片中心
+
动漫天地
+
金石社区
图形
-
网页设计
-
优化
-
动易
-
动网
-
HTML
-
PSD
-
FLASH模板
-
插件
-
杀毒
-
系统工具
-
FLASH音乐
-
FLASH游戏
-
美女
您现在的位置:
金石网
>>
网页特效
>>
游戏相关
>> 特效正文
速度练习 测试你打字的速度
『 更新时间:2006-4-1 』『 字体:
变小
变大
』『 作者:未知 | 来源:网络 』
把如下代码加入<body>区域中: 要完成此效果需要两个步骤 第一步:把如下代码加入到<head>区域中 <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> 第二步:把如下代码加入到<body>区域中 <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()"></textarea></TD> </TR> <TR><TD colspan=2><center><input type=text name="typed" size=45> <input type=button value="完成" name="stop" onClick="stopIt()"></center></TD> </TR> </TABLE></FORM>
【点击数:】【
发表评论
】【
加入收藏
】【
告诉好友
】【
打印此文
】【
关闭窗口
】
相
关文章
您的姓名:
评分等级:
1分
2分
3分
4分
5分
评论内容:
1、严禁发表危害国家安全、政治、黄色淫秽等内容的评论。
2、用户需对自己在使用金石网服务过程中的行为承担法律责任。
3、本站管理员有权保留或删除评论内容。
4、评论内容只代表网友个人观点,与本网站立场无关。
自动显示访问者IP地址代码
3721拦截不了的弹窗代码
强制设置为主页
主页被强制修改
贪吃蛇游戏
俄罗斯方块
看谁围的圈多
射击游戏:A就是大炮
十字定全局
爱情游戏测试
网
友评论
|
设为首页
|
加入收藏
|
联系我们
|
版权申明
|
友情链接
|
站点地图
|
网站帮助
|
网站留言
|
广告服务
|
Copyright © 2001-2008
K
ings
N
et.biz All Rights Reserved. 金石工作室 版权所有