网站地图
首页
php教程
asp.net教程
手机开发
css教程
网页制作
办公数码
jsp教程
asp教程
ps教程
当前位置:
编程学习网
>>
网页制作
>
js教程
> >
手机打字速度测试|js简单打字速度测试代码
手机打字速度测试|js简单打字速度测试代码
发布时间:2018-01-17
【www.gdgbn.com--js教程】
提示:您可以先修改部分代码再运行
js简单打字速度测试代码
打字速度测试
<script LANGUAGE="JavaScript"> 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 + " 个字符.") } } </script>
你是个...
初级者
中级者
高级者
提示:您可以先修改部分代码再运行
本文来源:
http://www.gdgbn.com/wangyezhizuo/21138/
上一篇:
【div隐藏与显示 js】js显示隐藏div层代码
下一篇:
【maximum call stack size exceeded】Maximum execution time of 30 seconds exceeded in
相关推荐
网页背景图片|设置网页背景透明代码
仿尺寸|仿chinaz暗蓝色导航菜单
[js限制同一浏览器下只能打开网页]js限制同一浏览器下只能打开同一网站一页面
fedora 30_Fedora Linux 8系统下配置JDK
【div隐藏与显示 js】js显示隐藏div层代码
[设置几秒钟后自动关机]设置几秒钟后自动打开或刷新网页代码
【免费100吗】免费100m/asp/ftp/200m/4000m/php/cgi/mysql/可绑米/有广告空间
staticthissuperfinal_static/this/super/final
javascript学习指南|javascript window.open,moveTo,resizeTo函数教程
innodb和myisam的区别|MyISAM和InnoDB区别
网友关注
js清除定时器_js清除预览text框内容代码
【免费100吗】免费100m/asp/ftp/ads个人网页空间
[个性非主流高清图片]个性美女-非主流气质美女图片
js打开新窗口打开_js打开新窗口代码
div css实例教程_div+css实例一款很酷的li列表样式
asp开发环境_Asp开发中常见错误提示及其意义说明
[根据输入改变样式]根据输入改变网页背景色
[浏览器兼容性问题 js]js获取浏览器相关信息
【站长素材网站】站长网站成功与否很关键的六个因素
[json]js DOM innerHTML 在IE下的innerHTML属性
热门标签
打字速度测试文章
最新js教程
js教程
js遍历对象_js中查找对象代码
js教程
javascript学习指南_java 自动装箱拆箱实现方法
js教程
eclipse连接mysql数据库_java连接db2数据代码
js教程
flash player|flash js Fusioncharts 参数详解与参考
js教程
json_js ajax XMLHttpRequest与jq $.ajax
js教程
【js利用cookie】js利用cookies与正则设置字体高亮显示
js教程
asp.net core_asp.net DataGridTree 下拉树 实现方法
js教程
[jsp注册页面代码]JSP页面编码问题分析
js教程
[hibernate和mybatis的区别]Hibernate 中get()和load()与Hibernate简介
js教程
判断textarea中是否有回车符|判断textarea中是否有回车符方法
js教程热门文章
js教程
【maximum call stack size exceeded】Maximum execution time of 30 seconds exceeded in
js教程
[js背景音乐]js背景不停变化代码-QQ空间代码
js教程
健身文章_js文章下载进度条代码
js教程
js仿苹果的悬浮按钮_js仿51jlb,chinahr求职意各选择代码
js教程
js游戏程序设计|js游戏程序,身体标准评价程序
js教程
[js代码在线生成]js在线考试系统代码
js教程
json_js 超漂亮的图片滑动自动轮换效果
js教程
[json]js 表单使按钮变灰代码
js教程
[javascript学习指南]java 计算阶乘的四个例子代码
js教程
phpstudy|php cookie设置,js cookie设置方法
声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
Copyright©2006-2019 编程学习网 www.gdgbn.com 版权所有