tone3_ce.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <html>
  2. <head>
  3. <meta name="MSSmartTagsPreventParsing" content="TRUE">
  4. <title>Concentration -- Match the Tones</title>
  5. <style type="text/css">
  6. a {
  7. text-decoration:none;
  8. color:white;
  9. }
  10. a:visited {
  11. text-decoration:none;
  12. color:white;
  13. }
  14. body {
  15. margin: 0 0 0 0;
  16. }
  17. #audioPlayer {
  18. margin: 0;
  19. padding: 0;
  20. }
  21. a.external:link {
  22. text-decoration: underline;
  23. color: blue;
  24. }
  25. .error {
  26. /* color: #660000;*/
  27. font-weight: bold;
  28. text-align: left;
  29. padding: 0 100px 0 100px;
  30. }
  31. </style>
  32. <script language="javascript">
  33. <!--
  34. function playSound(soundName) {
  35. var audioPlayer = document.getElementById('audioPlayer');
  36. audioPlayer.playSound(soundName);
  37. }
  38. var p = new Array();
  39. var po = new Array();
  40. var picData = new Array(0,1,10000,2,20000,3,30000,4,40000,5,50000,6,60000,7,70000,8,80000,9,90000,10,100000,11,110000,12,120000);
  41. var picInfo = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
  42. function preload(imgName, imgSrc) {
  43. if (document.images) {
  44. eval(imgName + ' = new Image()')
  45. eval(imgName+'.src = "'+imgSrc+'"')
  46. }
  47. }
  48. preload ('p1', '1130_qi2c.gif');
  49. preload ('p2', '1258_chu1c.gif');
  50. preload ('p3', '1885_chu2dividec.gif');
  51. preload ('p4', '196_qi1c.gif');
  52. preload ('p5', '2133_ji3c.gif');
  53. preload ('p6', '221_qu4goc.gif');
  54. preload ('p7', '4362_ji1c.gif');
  55. preload ('p8', '446_qi3c.gif');
  56. preload ('p9', '500_qu3takec.gif');
  57. preload ('p10', '6990_ji4c.gif');
  58. preload ('p11', '9335_ji2c.gif');
  59. preload ('p12', '9339_qi4c.gif');
  60. preload ('p10000', '1130_qi2e.gif');
  61. preload ('p20000', '1258_chu1e.gif');
  62. preload ('p30000', '1885_chu2dividee.gif');
  63. preload ('p40000', '196_qi1e.gif');
  64. preload ('p50000', '2133_ji3e.gif');
  65. preload ('p60000', '221_qu4goe.gif');
  66. preload ('p70000', '4362_ji1e.gif');
  67. preload ('p80000', '446_qi3e.gif');
  68. preload ('p90000', '500_qu3takee.gif');
  69. preload ('p100000', '6990_ji4e.gif');
  70. preload ('p110000', '9335_ji2e.gif');
  71. preload ('p120000', '9339_qi4e.gif');
  72. preload ('blankdot', 'blankdot.gif');
  73. var y;
  74. var temp;
  75. for (x=1; x<=24; x++){
  76. y = Math.round(Math.random()*(24-1))+1;
  77. temp = picData[x];
  78. picData[x] = picData[y];
  79. picData[y] = temp;
  80. }
  81. var temp1=0;
  82. var index1=0;
  83. var counter=0
  84. var condition =0;
  85. var s1;
  86. var s2;
  87. var rem;
  88. var ready = true;
  89. var soundindex = "sound12";
  90. var game_start = false;
  91. function checkit(x){
  92. if (game_start == false){
  93. tellTime();
  94. game_start = true;
  95. }
  96. if (picData[x] >= 100)
  97. playSound("sound" + picData[x] / 100);
  98. else
  99. playSound("sound" + picData[x]);
  100. if (picInfo[x]== 0 && ready==true){
  101. if (temp1==0){
  102. temp1 = picData[x];
  103. eval("document.pic" + x + ".src = p" + temp1 + ".src;");
  104. index1 = x;
  105. }
  106. else{
  107. if (index1 != x){
  108. if (picData[x] == temp1 * 10000 || picData[x] == temp1/10000){
  109. eval("document.pic" + x + ".src = p" + picData[x] + ".src;");
  110. eval("document.pic" + index1 + ".src = p" + temp1 + ".src;");
  111. temp1 = 0;
  112. picInfo[index1] = 1;
  113. picInfo[x] = 1;
  114. counter++;
  115. }
  116. else{
  117. temp1 = 0;
  118. rem = x;
  119. condition = 0;
  120. delay();
  121. }
  122. }
  123. }
  124. if (counter == 12){
  125. if (h==0 && m<10)
  126. alert("Great! Hint: Make your own game -- click on the English to see if you can match the characters!\n" +hinfo + minfo + sinfo);
  127. else
  128. alert("Good! Hint: Clicking will still play the sounds -- You can review by clicking on the English to see if you can match the characters!\n" +hinfo + minfo + sinfo);
  129. ready = false;
  130. timeCondition = false;
  131. }
  132. }
  133. }
  134. function delay(){
  135. if (condition == 0){
  136. eval("document.pic" + rem + ".src = p" + picData[rem] + ".src;");
  137. condition = 1;
  138. ready = false;
  139. setTimeout("delay()", 300);
  140. }
  141. else{
  142. eval("document.pic" + rem + ".src = blankdot.src;");
  143. eval("document.pic" + index1 + ".src=blankdot.src;");
  144. ready = true;
  145. }
  146. }
  147. //-->
  148. </script>
  149. </head>
  150. <body marginwidth="0" marginheight="0" onResize="window.location.href = window.location.href;">
  151. <table CELLPADDING="0" CELLSPACING="0" BORDER="0" border="0" bgcolor="#330099" height="8">
  152. <tr>
  153. <td NOWRAP="1" VALIGN=CENTER bgcolor="#330099">&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica" size="1"><a href="../../welcome.html">Home </a></font>&nbsp;&nbsp;<font size+1><font color="#FFFFFF">|</font></font></td>
  154. <td NOWRAP="1" bgcolor="#330099">&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica" size="1"><a href="../../../China/china.html">China Index</a></font>&nbsp;&nbsp;<font size+1><font color="#FFFFFF">|</font></font></td>
  155. <td NOWRAP="1" bgcolor="#330099">&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica" size="1"><a href="../../topics/topics.html">Topics </a></font>&nbsp;&nbsp;<font size+1><font color="#FFFFFF">|</font></font></td>
  156. <td NOWRAP="1" bgcolor="#330099">&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica" size="1"><a
  157. href="../games.html">Games</a></font>&nbsp;&nbsp;<font size+1><font color="#FFFFFF">|</font></font></td>
  158. <td NOWRAP="1" bgcolor="#330099">&nbsp;&nbsp;<font face="Verdana,Arial,Helvetica" size="1" color="#CCCC00">Tone Match </font>&nbsp;&nbsp;<font size+1></font></td>
  159. </tr>
  160. </table>
  161. <center>
  162. <p><b><font face="Verdana"><font color="#000099"><font size=-2>Patience please. Wait until the web page finishes loading before you click on the game.<br>
  163. You can continue to play off-line as long as your web browser is open.<br>Hit "Reload" on your browser to play again.</font></font></font></b></p>
  164. <p><b><i><font face="Times New Roman,Times"><font color="#006600"><font size=+1>Enjoy!!!</font></font></font></i></b></p>
  165. <applet code="MultiAudioPlay.class" id="audioPlayer" height="1" width="1">
  166. <param name="image" value="appletsuccessicon.png">
  167. <param name="audio" value="sound1: tone3sound/1130fq.wav,
  168. sound2: tone3sound/1258lyz.wav,
  169. sound3: tone3sound/1885ljz.wav,
  170. sound4: tone3sound/196lz.wav,
  171. sound5: tone3sound/2133am.wav,
  172. sound6: tone3sound/221am.wav,
  173. sound7: tone3sound/4362bj.wav,
  174. sound8: tone3sound/446fq.wav,
  175. sound9: tone3sound/500fx.wav,
  176. sound10: tone3sound/6790mz.wav,
  177. sound11: tone3sound/9335hua.wav,
  178. sound12: tone3sound/9339hua.wav,
  179. sound100: tone3sound/1130jz.wav,
  180. sound200: tone3sound/1258wt.wav,
  181. sound300: tone3sound/1885mz.wav,
  182. sound400: tone3sound/196wj.wav,
  183. sound500: tone3sound/2133cl.wav,
  184. sound600: tone3sound/221lz.wav,
  185. sound700: tone3sound/4362gu.wav,
  186. sound800: tone3sound/446fx.wav,
  187. sound900: tone3sound/500lz.wav,
  188. sound1000: tone3sound/6790jes.wav,
  189. sound1100: tone3sound/9335jz.wav,
  190. sound1200: tone3sound/9339jz.wav">
  191. <p class="error">ERROR: Applet not displayed. JavaScript and Java 1.4.2 or later are required for this game to work. Visit the <a href="http://www.java.com/" title="Java Software Website" class="external">Java Software Website</a> to check if Java is installed on your computer or try enabling <em>ActiveX</em> if you are an Internet Explorer user.</p>
  192. </applet>
  193. <table border=1 BGCOLOR="#CCCCFF" >
  194. <tr>
  195. <td><a href="javascript:checkit(1)"><img src="blankdot.gif" border=0 name="pic1" width=64 height=64></a></td>
  196. <td><a href="javascript:checkit(2)"><img src="blankdot.gif" border=0 name="pic2" width=64 height=64></a></td>
  197. <td><a href="javascript:checkit(3)"><img src="blankdot.gif" border=0 name="pic3" width=64 height=64></a></td>
  198. <td><a href="javascript:checkit(4)"><img src="blankdot.gif" border=0 name="pic4" width=64 height=64></a></td>
  199. <td><a href="javascript:checkit(5)"><img src="blankdot.gif" border=0 name="pic5" width=64 height=64></a></td>
  200. </tr>
  201. <tr>
  202. <td><a href="javascript:checkit(6)"><img src="blankdot.gif" border=0 name="pic6" width=64 height=64></a></td>
  203. <td><a href="javascript:checkit(7)"><img src="blankdot.gif" border=0 name="pic7" width=64 height=64></a></td>
  204. <td><a href="javascript:checkit(8)"><img src="blankdot.gif" border=0 name="pic8" width=64 height=64></a></td>
  205. <td><a href="javascript:checkit(9)"><img src="blankdot.gif" border=0 name="pic9" width=64 height=64></a></td>
  206. <td><a href="javascript:checkit(10)"><img src="blankdot.gif" border=0 name="pic10" width=64 height=64></a></td>
  207. </tr>
  208. <tr>
  209. <td><a href="javascript:checkit(11)"><img src="blankdot.gif" border=0 name="pic11" width=64 height=64></a></td>
  210. <td><a href="javascript:checkit(12)"><img src="blankdot.gif" border=0 name="pic12" width=64 height=64></a></td>
  211. <td><img src="lion.jpg" border=0 width=64 height=64></td>
  212. <td><a href="javascript:checkit(13)"><img src="blankdot.gif" border=0 name="pic13" width=64 height=64></a></td>
  213. <td><a href="javascript:checkit(14)"><img src="blankdot.gif" border=0 name="pic14" width=64 height=64></a></td>
  214. </tr>
  215. <tr>
  216. <td><a href="javascript:checkit(15)"><img src="blankdot.gif" border=0 name="pic15" width=64 height=64></a></td>
  217. <td><a href="javascript:checkit(16)"><img src="blankdot.gif" border=0 name="pic16" width=64 height=64></a></td>
  218. <td><a href="javascript:checkit(17)"><img src="blankdot.gif" border=0 name="pic17" width=64 height=64></a></td>
  219. <td><a href="javascript:checkit(18)"><img src="blankdot.gif" border=0 name="pic18" width=64 height=64></a></td>
  220. <td><a href="javascript:checkit(19)"><img src="blankdot.gif" border=0 name="pic19" width=64 height=64></a></td>
  221. </tr>
  222. <tr>
  223. <td><a href="javascript:checkit(20)"><img src="blankdot.gif" border=0 name="pic20" width=64 height=64></a></td>
  224. <td><a href="javascript:checkit(21)"><img src="blankdot.gif" border=0 name="pic21" width=64 height=64></a></td>
  225. <td><a href="javascript:checkit(22)"><img src="blankdot.gif" border=0 name="pic22" width=64 height=64></a></td>
  226. <td><a href="javascript:checkit(23)"><img src="blankdot.gif" border=0 name="pic23" width=64 height=64></a></td>
  227. <td><a href="javascript:checkit(24)"><img src="blankdot.gif" border=0 name="pic24" width=64 height=64></a></td>
  228. </tr>
  229. </table>
  230. </center>
  231. <script language="javascript">
  232. <!--
  233. var h=0;
  234. var hinfo = "";
  235. var m=0;
  236. var minfo = "";
  237. var s=-1;
  238. var sinfo = "";
  239. var timeCondition = true;
  240. function tellTime(){
  241. s++;
  242. if (s>=60){
  243. s = 0;
  244. m++;
  245. }
  246. else{
  247. if (s<=1)
  248. eval("sinfo = '" + s + " second'");
  249. else
  250. eval("sinfo = '" + s + " seconds'");
  251. }
  252. if (m>=60){
  253. m = 0;
  254. h++;
  255. }
  256. else{
  257. if (m<=1)
  258. eval("minfo = '" + m + " minute '");
  259. else
  260. eval("minfo = '" + m + " minutes '");
  261. }
  262. if (h<=1)
  263. eval("hinfo = '" + h + " hour '");
  264. else
  265. eval("hinfo = '" + h + " hours '");
  266. window.status = hinfo + minfo + sinfo;
  267. if (timeCondition == true)
  268. setTimeout("tellTime()", 1000);
  269. }
  270. //-->
  271. </script>
  272. </body>
  273. </html>