Система за бързо писане

dj_e

Registered
http://speedtest.10-fast-fingers.com/

Има ли система като тази или как може да се направи
 
ето ти сорс кода това е ХТМЛ

Код:
<html>
<head>
<title>Speedtest - how fast are you?</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://10-fast-fingers.com/ajaxstuff/prototype.js"></script>
<script type="text/javascript" src="http://10-fast-fingers.com/ajaxstuff/scriptaculous.js"></script>

<meta name="description" content="How fast do you write on the keyboard. Are you faster than all the others?" />
<meta name="keywords" content="speedtest, type, write, fast, speed, touch typing" />

<script type="text/javascript">

var zaehler = 0;

var pruefstring = 'answer house those close she boy along keep put watch went there being to form large mile into night sometimes day live letter great some never when walk soon kind for many other away both call up girl me try now make it\'s life was also hard its small above help don\'t show thing much who get really point set more these come go world found saw people earth line where not example said down know number leave water sentence one run than as off it three find his or my high well you about in want song head white at such look idea write their an end left her what hear do list four on mean car below second while back this thought turn take far may spell is were state first another does year just because men eye each by be father time why move feet once always good children different give big after over will right picture cut between with might play but has work only still see together family start little we until Indian near old learn place read eat of here river can enough did before follow page again word new them most animal next under he something air mountain begin have are plant two paper food around if very miss us tell any say think been and began land later often through got like name from no story would must country long too tree part grow light hand few made mother face stop that so change man last without talk carry city then almost sound out seem America your took let oil should side add how ask use sea all open own important school home him study our had young which came group every even the way they need book could same ';
var vorausgabe = '<span style="background: #ddd;">answer</span> house those close she boy along keep put watch went there being to form ';

var wort = pruefstring.split(' ');
var mode = pruefstring.split(' ');
var max_anzahl = wort.length;
var laeufer = 1;
var anzahl_zeichen = 0;
var woerter_richtig = 0;
var woerter_falsch = 0;
var aktiv

var start = 0;
var sekunden = 0;
function time() 
{
  sekunden++;
  
  if(sekunden <= 60) 
    document.getElementById('zeitfenster').innerHTML = 60-sekunden;
  
  //Auswertung
  if(sekunden >= 60 && start < 2)
  {
    document.getElementById('info').style.display = 'none';
    start = 2;
    ausgabe(); 
  }
}

function ausgabe()
{
  var punktzahl = 0;
  
  for(j=0; j<mode.length; j++)
  {
    if(mode[j] == 0)
      punktzahl -= wort[j].length;
    else if(mode[j] == 1)
      punktzahl += wort[j].length;  
  }

  document.getElementById('haupt').innerHTML = '';
  
	document.getElementById('auswertung').style.display = 'block';
	document.getElementById('auswertung').innerHTML = '<img src="http://10-fast-fingers.com/filesystem/images/ajax-loader-big.gif" alt="" />';
	
ausgabe_now = new Ajax.Updater(
  'auswertung', 
  '/auswertung.php', 
  {
    method:'get',													      parameters:'zeichenzahl='+document.getElementById('zeichenzahl').innerHTML+'&woerter_richtig='+document.getElementById('woerter_richtig').innerHTML+'&woerter_falsch='+document.getElementById('woerter_falsch').innerHTML+'&punktzahl='+punktzahl,
    asynchronous:true});
}

function welcheup (e) {
  welche(e, false);
}

function welchedown (e) {
  welche(e, true);
}

function welche (e, down) {
  var e = e || window.event;

  if(window.captureEvents) {
    var taste = e.which;
  } else {
    var taste = e.keyCode;
  }
  if(taste==16 || taste==17 || taste==18)
    return;

  if(!down) {
    anzahl_zeichen++;
    document.getElementById('zeichenzahl').innerHTML = anzahl_zeichen;
    document.getElementById('woerter_richtig').innerHTML = woerter_richtig;
    document.getElementById('woerter_falsch').innerHTML = woerter_falsch;
  }
  
  if(start == 0)
  {
    document.getElementById('neustart').style.display = 'inline';
    aktiv = setInterval('time()',1000);
    start = 1;
  }

  if(down ? taste!=13 : taste!=32)
    return;

  wert = document.getElementById('eingabe').value;
    
  if(taste==32)
  {
    while(wert.indexOf(" ") != -1) {
      mode[zaehler] = wert.substr(0, wort[zaehler].length+1) 
                      == wort[zaehler]+' ';
      wert = wert.replace(/^[^ ]* /, "");
      woerter_richtig += mode[zaehler];
      woerter_falsch += !mode[zaehler];
      zaehler++;
      check();
    }
  }
  else if(taste==13)
  {
    mode[zaehler] = wert.substr(0, wort[zaehler].length) 
                    == wort[zaehler];
    wert = "";
    woerter_richtig += mode[zaehler];
    woerter_falsch += !mode[zaehler];
    zaehler++;
    check();
  }
  document.getElementById('eingabe').value = wert;
}

if (window.captureEvents) {
  window.captureEvents(Event.KEYPRESS);
  // auf die eine Zeile vorher (fГјr Netscape 4.X) kommt's nicht an
  window.onkeyup=welcheup;
  window.onkeydown=welchedown;
} else {
  document.onkeyup=welcheup;
  document.onkeydown=welchedown;
}


function laden() 
{
  document.getElementById('vorgabe').innerHTML = vorausgabe;

  document.getElementById('zeitfenster').innerHTML = '60';
}
	
function check() 
{
  if((zaehler % 16) == 0)
    laeufer++;

  var rueck = '';
  
  for(i=(0+((laeufer-1)*16)); i<(16*laeufer); i++)
  {
    if(zaehler == i)
      rueck += '<span style="background: #ddd;">'+wort[i]+'</span> ';
    else
    { 
      if(mode[i] == 0)
        rueck += '<span style="color:red">'+wort[i]+'</span>'+' ';
      else if(mode[i] == 1)
        rueck += '<span style="color:green">'+wort[i]+'</span>'+' ';  
      else
        rueck += wort[i]+' ';
    }
  }
  
  document.getElementById('vorgabe').innerHTML = rueck;
}	

</script>


<script language="javascript">
</script>                                                          



</head>
<body onload="laden()">

<div id="wrapper">
<div id="logo">
<a href="http://speedtest.10-fast-fingers.com"><img src="http://speedtest.10-fast-fingers.com/speedtest_logo.png" alt="10 Fast Fingers Logo" /></a>
<a href="http://speedtest.schnell-schreiben.de"><img src="http://10-fast-fingers.com/de.gif" alt="" /></a>

<div id="werbung_head">



<script language="javascript" src="http://media.fastclick.net/w/get.media?sid=43187&m=1&tp=5&d=j&t=n"></script>
<noscript><a href="http://media.fastclick.net/w/click.here?sid=43187&m=1&c=1" target="_blank">
<img src="http://media.fastclick.net/w/get.media?sid=43187&m=1&tp=5&d=s&c=1"
width=728 height=90 border=1></a></noscript>


				
</div>
					

<br /><br />
</div>

<a id="neustart" href="http://speedtest.10-fast-fingers.com">Restart</a>
<div id="main">
  <div id="info">

    Here you can test how fast you are. Just type in the words. Are you faster than all the others? A nice side effect: these are the most used english words. Every time you try to beat the score, you improve your typing speed :)
  </div>
  
  


<div id="uebersicht_anfaenger">  

<div id="haupthaupt">  
  <div id="haupt">
    <div id="vorgabe"></div>
    <div id="zeitfenster"></div>
    <input autocomplete="off" class="input_value" id="eingabe" tabindex="1" />
  </div> 
  

<script type="text/javascript">
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


</div>
  
  <div id="auswertung"></div>  
</div>

<div id="text">	
With the speed test you can test your typing speed. 
Of course you will not get an 100% accurate result, but at least a clue where you are. 
Try it again and again, and with time you will get faster, that is because, 
since the words that you need to type, are the most frequently used words of the english language. 
The faster you can type these words, the faster you will also type ordinary texts. 
After the evaluation you can include your results in your blog or whereever you want, so your friends can see how fast you type.
<br /><br />
If you are not satisfied with your typing speed, then try it again from time to time. If you are not yet familiar with the touch typing system, you should learn it necessarily, you will be much faster, you no longer need to look on the keyboard and you can easily achieve a writing speed of 70 words per minute. In my opinion we will still use the keyboard in 20 years so it is worth the time you invest in learning this essential skill. And now you have no more excuses, follow the link and you can learn the touch typing system online and for free (don't worry, its the same website, no advertising shit or something like that):
</div>
  

<br /><br /><br />   
</div>
</div>

<div id="zeichenzahl"></div>
<div id="woerter_richtig"></div>
<div id="woerter_falsch"></div>

<script type="text/javascript">
	document.getElementById('eingabe').focus();	
</script>


<br /><br /><br />   
<br /><br />

<a href="http://10-fast-fingers.com/include/impressum.php" rel="nofollow">Impressum</a> | © Christian Strang 2007

<br />   


</body>
</html>
 
и какво по точно да направя ? :D
 
0 points, so you achieved position 498549 of 498549 on the ranking list


You type 549 characters per minute
You have 0 correct words and
you have 264 wrong words :D :D :D :?: :?: 8) 8) :) :twisted: :twisted:
 
Аа това е много яко бре :D
270 points, so you achieved position 88115 of 504258 on the ranking list


You type 357 characters per minute
You have 67 correct words and
you have 0 wrong words
 

Back
Горе