<center> <table bgcolor="#99CC66" width="444"><tr><td> <table border="2" bordercolor="#BFFF80" width="100%" cellspacing="0"><tr><td align="middle"> <font face="verdana,arial,helvetica" color="#BFFF80" size="6pt"><b>The Count Game</b></font>
<script language="JavaScript"> <!-- var counter=0; var speed_count=1000; var maxVal=150; var playFlag=true; function count_init() { document.write('<form name="count_form"><input type="button" value="0" name="count_container" style="border:#808080 solid 2px; height:22px; background:#EFEFEF; width:100px; cursor:pointer" onClick="choose_ps();"> <input type="text" name="count_op" style="border:#808080 solid 2px; height:22px; width:100px"> <input type="button" value="Restart" name="count_restart" style="border:#808080 solid 2px; height:22px; background:#EFEFEF; width:100px; cursor:pointer" onClick="location.reload();"></form>'); }
function count_play() { counter++; document.count_form.count_container.value=counter; if(counter<maxVal) { setTimeout("count_play()",speed_count); } if(((counter%10)==0)||(counter==1)) { speed_count/=10; } }
function choose_ps() { if(playFlag) { reset_count(); playFlag=false; count_play(); } else { document.count_form.count_op.value=counter; document.count_form.count_container.value=document.count_form.count_op.value; speed_count*=100000000000000000000; playFlag=true; if((document.count_form.count_op.value<=100)&&(document.count_form.count_op.value>=98)) { alert('ÈÇ·æÇϽʴϴٿä..~~!'); } else { alert('Á» ´õ ÁýÁßÇϼ¼¿ä...!'); } } }
function reset_count() { counter=0; speed_count=1000; document.count_form.count_container.value=counter; document.count_form.count_op.value=''; }
count_init(); //--> </script> </td></tr></table> <br>
¿ÞÂʹڽº¿¡ ÀÖ´Â ¼ýÀÚ 0 À» Ŭ¸¯Çϸé 1ºÎÅÍ 150±îÁö Á¡Á¡ »¡¶óÁö¸é¼ Ä«¿îÅÍ µË´Ï´Ù. À̶§ 98¿¡¼ 100±îÁö ¼ýÀÚ¸¸Å ¿ÔÀ»¶§ Ä«¿îÅÍ µÇ´Â ¼ýÀÚ¸¦ Ŭ¸¯Çؼ 98~100»çÀÌ¿¡ µé¾î¿À¸é ½Â¸®ÇÏ´Â °ÔÀÓÀÔ´Ï´Ù.
</td></table>
|