Hello
I downloaded the free script :
I removed the first array and the 'e' function and replaced functions m & s with custom text - however this stops the whole thing working. Does anybody one know why ?
thanks
I downloaded the free script :
Code:
<HEAD>
<title>Free Typing Test Online</title>
<META NAME="keywords"
CONTENT=" Typing Test, online typing tests,World's Smallest Political Quiz,iq ,universityoflife.com,online iq test,typing test, typing,typing tutor, typing tutorial,typing program, typing game,typing software, mavis beacon typing tutorial, Mavis Beacon, navis beecon, navis beacom, Jumpstart Typing, Learn Typing Quick & Easy 9.0, Typing Instructor Deluxe Edition 9.0,
,typing lesson, free typing tutor,free typing test,typing services The Keirsey Temperament Sorter,free iq test, iq testing, 2ofakind.com, iq and test, iq test online, iq score,iq quiz,Alien abduction,oline teat,fun questionaires,tieping, tiping,magazine, quizzes test tests examinations exam, New Age,Netiquette, University OF Life school of hard knocks
School Of Hard Knocks present great gift idea, Psych Web
college of experience,
Psychological tests, Mavis Beacon Teaches Typing, All Star Typing">
<META
<META NAME="revisit-after" CONTENT="30 days">
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! [URL unfurl="true"]http://javascript.internet.com[/URL] -->
<!-- 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("You can not change that!");
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("\nYou typed a " + word + " word sentence in "
+ totalTime + " seconds, a speed of about " + spd + " words per minute!")
}
else {
alert("You made an error, but typed at a speed of " + spd + " words per minute.")
}
}
// End -->
</SCRIPT>
</HEAD>
<body bgcolor="white" text="TEAL" link=#0000FF alink=#0000FF vlink=#FF0000>
<!-- STEP ONE: Put this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<FONT COLOR="DARKGREEN">
<h2> </h2>
</FONT> <B> <BR>
</B>
<FORM name="theForm">
<div align="center"></div>
<TABLE BORDER=3 align="center" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>Select Level.</TD>
<TD align=center><input type=radio name="sme" value="Beginner" onClick="s()" checked>
Practice
<input type=radio name="sme" value="Novice" onClick="m()">
Main </TD>
</TR>
<TR><TD colspan=2><BR>
<center><input type=button value="Start Typing Test" 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="DONE" name="stop" onClick="stopIt()"></center></TD>
</TR>
</TABLE>
<div align="center"></div>
</FORM>
<BLOCKQUOTE>
<H3>
<BR><BR>
<BR><BR>
<BR><BR><BR><BR><BR><BR><BR><BR><BR>
<BR>
<BR><BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR>
<FONT COLOR="#FFFFaa"><BR>
<BR>
</FONT> </HTML>
I removed the first array and the 'e' function and replaced functions m & s with custom text - however this stops the whole thing working. Does anybody one know why ?
thanks