123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <html>
- <head>
- <title>Speed Numbers</title>
- <LINK REL="SHORTCUT ICON" HREF="../../ting.ico">
- <STYLE type="text/css">
- <!--
- A { text-decoration:none; color:white; }
- A:visited { text-decoration:none; color:white; }
- body {margin: 0 0 0 0;}
- -->
- </STYLE>
- <style>
- #datainfo { position: relative; top: 0; left:0; height:14px; width:100%;}
- #timeinfo { position: relative; top: 0; left:0; width:100%;}
- </style>
- <script language="javascript">
- <!--
- var agt=navigator.userAgent.toLowerCase();
- var is_major = parseInt(navigator.appVersion);
- var is_nav = ((agt.indexOf("mozilla")!=-1) && (agt.indexOf("spoofer")==-1) && (agt.indexOf("compatible") == -1) && (agt.indexOf("opera")==-1) && (agt.indexOf("webtv")==-1));
- var is_nav5up = (is_nav && (is_major >= 5));
- var is_ie = (agt.indexOf("msie") != -1);
- var max = 10;
- var min = 0;
- var num = "";
- var counter = 0;
- function showNumber(){
- if (counter <=9){
- counter++;
- if (counter == 1){
- document.myform1.next.value = "Next>>";
- writeInfo('timeinfo', '');
- h = 0;
- s = 0;
- m = 0;
- timeID = setInterval("tellTime()",1000);
- }
- eval("num = '<center><h2>" + (Math.round(Math.random()*(max-min))+min) + "</h2></center>'");
- writeInfo('datainfo', num);
- if (counter == 10){
- document.myform1.next.value = "End";
- }
- }
- else{
- if (counter == 10){
- clearInterval(timeID);
- counter = 100;
- if (confirm("Good Job! " + hinfo + minfo + sinfo + "\nPlay again?")){
- document.myform1.next.value = "Start";
- counter = 0;
- }
- }
- else{
- if (confirm("Play again?")){
- document.myform1.next.value = "Start";
- counter = 0;
- }
- }
- }
- }
- function changeRange(xMin, xMax){
- min = xMin;
- max = xMax;
- }
- function writeInfo(layN, info){
- if ((!is_nav5up) && is_nav ){
- eval("with (document.layers['" + layN + "'].document){ write(info); close();}");
- }
- if (is_nav5up){
- eval("document.getElementById('" + layN + "').innerHTML= info;");
- }
-
- if (is_ie){
- eval("document.all['" + layN + "'].innerHTML = info;");
- }
- }
- //-->
- </script>
- <style>
- #root {position:relative; width:100%; top: 2px; left:0;}
- #subroot {position: absolute; left: 30%;}
- #descr {position: absolute; left:0; top:0;}
- </style>
- </head>
- <body marginwidth="0" marginheight="0">
- <body onResize="window.location.href = window.location.href;">
- <DIV ID="descr"> </DIV>
- <table CELLPADDING="0" CELLSPACING="0" BORDER="0" border="0" bgcolor="#330099" height="8">
- <tr>
- <td NOWRAP="1" VALIGN=CENTER bgcolor="#330099"> <font face="Verdana,Arial,Helvetica" size="1"><a href="../../welcome.html">Home </a></font> <font size+1><font color="#FFFFFF">|</font></font></td>
- <td NOWRAP="1" bgcolor="#330099"> <font face="Verdana,Arial,Helvetica" size="1"><a href="http://hua.umf.maine.edu/China/china.html">China Index</a></font> <font size+1><font color="#FFFFFF">|</font></font></td>
- <td NOWRAP="1" bgcolor="#330099"> <font face="Verdana,Arial,Helvetica" size="1"><a href="../../topics/number2/douying.html">Topics: Numbers </a></font> <font size+1><font color="#FFFFFF">|</font></font></td>
- <td NOWRAP="1" bgcolor="#330099"> <font face="Verdana,Arial,Helvetica" size="1"><a
- href="../games.html">Games</a></font> <font size+1><font color="#FFFFFF">|</font></font></td>
- <td NOWRAP="1" bgcolor="#330099"> <font face="Verdana,Arial,Helvetica" size="1" color="#CCCC00">Number Game</font> <font size+1></font></td>
-
- </tr>
- </table>
-
- <center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR="#FFFFFF" >
- <tr>
- <td><img SRC="numbergameframe8pieces_01.gif" height=46 width=51></td>
- <td><img SRC="numbergameframe8pieces_02.gif" BORDER=0 height=46 width=344></td>
- <td><img SRC="numbergameframe8pieces_03.gif" height=46 width=55></td>
- </tr>
- <tr>
- <td><img SRC="numbergameframe8pieces_04.gif" height=355 width=51></td>
- <td VALIGN=TOP>
- <center>
- <font color="#339933"><h1><i>Speed Numbers</i></h1></font>
- <form name="myform">
- <input type="radio" name="range" onclick="changeRange(0, 10); return true;" checked>0 - 10<br>
- <input type="radio" name="range" onclick="changeRange(0, 100); return true;">0 - 100<br>
- <input type="radio" name="range" onclick="changeRange(0, 1000); return true;">0 - 1000<br>
- <input type="radio" name="range" onclick="changeRange(0, 10000); return true;">0 - 10000<br>
- <input type="radio" name="range" onclick="changeRange(0, 100000); return true;">0 - 100000</form>
- <script language="javascript">
- <!--
- if ((!is_nav5up) && is_nav )
- document.write("<br><br><br><br><layer id='datainfo'> </layer>");
- else
- document.write("<div id='datainfo'><h2> </h2></div>");
- //-->
- </script><br>
- <form name="myform1">
- <input type="button" name="next" value=" start " onclick="showNumber()">
- </form>
- </center>
- <script language="javascript">
- <!--
- if ((!is_nav5up) && is_nav ){
- document.write("<br><layer id='timeinfo'> </layer>");
- }
- else{
- document.write("<div id='timeinfo'> </div>");
- }
- var h=0;
- var hinfo = "";
- var m=0;
- var minfo = "";
- var s=0;
- var sinfo = "";
- var t;
- function tellTime(){
- s++;
- if (s>=60){
- s = 0;
- m++;
- }
- else{
- if (s<=1)
- eval("sinfo = '" + s + " second'");
- else
- eval("sinfo = '" + s + " seconds'");
- }
- if (m>=60){
- m = 0;
- h++;
- }
- else{
- if (m<=1)
- eval("minfo = '" + m + " minute '");
- else
- eval("minfo = '" + m + " minutes '");
- }
- if (h<=1)
- eval("hinfo = '" + h + " hour '");
- else
- eval("hinfo = '" + h + " hours '");
- if ((!is_nav5up) && is_nav )
- t = "<center>" + hinfo + minfo + sinfo + "</center>";
- else
- t = "<center>" + hinfo + minfo + sinfo + "</center>";
- writeInfo("timeinfo", t);
- }
- //-->
- </script>
- </td>
- <td><img SRC="numbergameframe8pieces_06.gif" height=355 width=55></td>
- </tr>
- <tr>
- <td><img SRC="numbergameframe8pieces_07.gif" height=49 width=51></td>
- <td><img SRC="numbergameframe8pieces_08.gif" height=49 width=344></td>
- <td><img SRC="numbergameframe8pieces_09.gif" height=49 width=55></td>
- </tr>
- </table></center>
- </body>
- </html>
|