爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
测试您打字的速度
测试您打字的速度
日期:2014-05-18 浏览次数:20248 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<!--网页特效代码由驿站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()"></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> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:时间提示脚本,每5分钟显示一次
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
新浪微博推粉丝头条功能 意欲与大号分成
京东封杀财付通:终极目标是电商生态圈
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
小灵通两年都无信号 顾客起诉联通公司
腾讯微信昨晚再现大规模故障 多地受到影响
巨人网络回应央视 否认应用黑客停止诈骗
银联布局二维码支付,“擦边球”生态不能自救
微软提示XP只剩365天寿命:用户被绑架?
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
推荐阅读
更多>
喜大普奔:2016年国内乘客有望在飞机上使用手机
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
途牛旅游网今晚挂牌纳斯达克 融资1亿美元
小微型IDC云化趋势加剧 云计算未来或现终极模式
孙正义入股阿里往事还原:阿里巴巴并非软银首选
去看看外面的世界吧!别窝里斗了,中国在线旅游商们
优酷土豆携手新浪微博 谋攻移动视频失地
谷歌安卓全球副总裁为何跳槽中国企业小米?
韩国研制无线充电系统:一次可充40部手机
惠普中国转型只是缩影 未来开展不可预期
解读苹果收购Beats背后动机:库克在想什么?
广东移动高层受调查 中移动或现更大反腐风暴
微软觊觎移动互联市场:手机未出渠道先行
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
雅安地震 绝不宽恕应用人们爱心的骗子!
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
做大电影,阿里控股公司在港成立影业集团
特斯拉技术专利开放,要革自己的命?
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
小米盗版有理激怒乐视:提500部盗播证据猛追打