WEST MiRa(1,739 Byte)
JavaScript(1,601 Byte)
ƒjƒbƒZƒ“

¢£ JavaScript - ¥µ¥ó¥×¥ë½¸(257¼ïÎà) - ¥²¡¼¥à
¡¡¡¡ - ¥ë¡¼¥ì¥Ã¥È

¥ë¡¼¥ì¥Ã¥È¤Ç¤¹¡£
¤Þ¤ºÅÒ¤±¤ë¾ì½ê¤òÁªÂò¤·¡¢¤«¤Ä³Ý¤±¶â¤âÁª¤Ù¤Þ¤¹¡£
Åö¤¿¤Ã¤¿¾ì¹ç¡¢³Ý¤±¶â¤Î£²ÇܤΥ³¥¤¥ó¤ò³ÍÆÀ¤Ç¤­¤Þ¤¹¡£
¥¹¥í¥Ã¥È¤È°ã¤Ã¤Æ¡¢¥¿¥¤¥ß¥ó¥°¤µ¤¨¹ç¤¨¤Ð£Ï£Ë¤Ê¤Î¤Ç¤±¤Ã¤³¤¦´Êñ¤ËÅö¤¿¤ë¤È»×¤¤¤Þ¤¹¡£

¥ê¥»¥Ã¥È¤ò²¡¤¹¤È½é´ü¾õÂÖ¤ËÊÖ¤ê¤Þ¤¹¡£
¥³¥¤¥ó¤¬¥¼¥í¤Ë¤Ê¤ë¤È¡¢¤½¤Î»ÝÅÁ¤¨¤ë¥À¥¤¥¢¥í¥°¤¬½Ð¤Þ¤¹¡£

¡¦¥µ¥ó¥×¥ë¤ò¸«¤ë
¡¦¥½¡¼¥¹¤òÊݸ¤¹¤ë
¡Ê±¦¥¯¥ê¥Ã¥¯¢ª¡ÖÂоݤò¥Õ¥¡¥¤¥ë¤ËÊݸ¡×or¡Ö¥ê¥ó¥¯¤ò̾Á°¤òÉÕ¤±¤ÆÊݸ¡×¤·¤Æ²¼¤µ¤¤¡£¡Ë
¡¦¥½¡¼¥¹¤ò¸«¤ë
¡¦²òÀâ¤ò¸«¤ë





[ ¥½¡¼¥¹ ]

<html>
<head>
<script language="JavaScript">
<!--//Copyright (C) WEST MiRa http://www.west-mira.jp

hayasa=100;
coin=50;
bai=2;
d=0;
basyo=new Array(5,7,9,11,10,8,6,4,2,0,1,3);
kekka=coin;
kakekinn=0;
e=0;doko=0;i=0;
	function hajime()
	{
	document.form_basyo.text0.value="0";
	document.form_basyo.text1.value="1";
	document.form_basyo.text2.value="2";
	document.form_basyo.text3.value="3";
	document.form_basyo.text4.value="4";
	document.form_basyo.text5.value="5";
	document.form_basyo.text6.value="6";
	document.form_basyo.text7.value="7";
	document.form_basyo.text8.value="8";
	document.form_basyo.text9.value="9";
	document.form_basyo.text10.value="10";
	document.form_basyo.text11.value="11";

	kekka=coin;
	document.form1.kekka.value=coin;
	}

	function starts(dotti)
		{
		if(dotti==0)
			{
			kakekinn=document.form1.kakekinn.selectedIndex;
			kakekinn=(kakekinn==-1)?1:kakekinn+1;
			if(kekka<1)
				{alert("µ®Êý¤Ï¥³¥¤¥ó¤ò»È¤¤²Ì¤¿¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡Ä¡£");
				document.form1.kekka.value=0;}
			else 
				{
				kekka-=kakekinn;
				document.form1.kekka.value=kekka;
				e=0;i=0;roulette();}
			}

		else if(dotti==1)
			{
			doko=document.form1.basyo.selectedIndex;
			if(doko==-1)basyo=0;
			e=10000;
			}
		}

	function roulette()
		{
		if(e<10000)
			{
			document.form_basyo.elements[basyo[i]].focus();
			document.form_basyo.elements[basyo[i]].select();

			e++;
			if(i<11)i++;
			else i=0;
			clearTimeout(d);
			d=setTimeout('roulette()',hayasa);
			}
		else if(e==10000)
			{
			if(i!=0)a=document.form_basyo.elements[basyo[i]].value-1;
			else a=11;
			if(a==doko)
				{kekka=kakekinn*bai+kekka;
				document.form1.kekka.value=kekka;}
			}
		}

//-->
</script>
</head>
<body onLoad="hajime()">

<table><tr><td><form name="form_basyo">
<table border="0" cellpadding="1"><tr>
<td align="center">
<input type="text" size="2" name="text9">
</td>
<td align="center">
<input type="text" size="2" name="text10">
<br><br><br>
<input type="text" size="2" name="text8">
</td>
<td align="center">
<input type="text" size="2" name="text11">
<br><br><br><br><br>
<input type="text" size="2" name="text7">
</td>
<td align="center">
<input type="text" size="2" name="text0">
<br><br><br><br><br><br><br>
<input type="text" size="2" name="text6">
</td>
<td align="center">
<input type="text" size="2" name="text1">
<br><br><br><br><br>
<input type="text" size="2" name="text5">
</td>
<td align="center">
<input type="text" size="2" name="text2">
<br><br><br>
<input type="text" size="2" name="text4">
</td>
<td align="center">
<input type="text" size="2" name="text3">
</td>
</tr></table></form>
</td></tr>

<form name="form1">
<tr>
<td>
¼ê»ý¤Á¥³¥¤¥ó¤Ï¤¢¤È
<input type="text" size="3" name="kekka">
Ëç¡£</td>
</tr>

<tr>
<td><select name="basyo">
<option>0<option>1<option>2<option>3
<option>4<option>5<option>6<option>7
<option>8<option>9<option>10<option>11
</select>¤Ë
<select name="kakekinn">
<option>1<option>2<option>3<option>4
<option>5<option>6<option>7<option>8
<option>9<option>10<option>11<option>12
<option>13<option>14<option>15<option>16
<option>17<option>18<option>19<option>20
<option>21<option>22<option>23<option>24
<option>25<option>26<option>27<option>28
<option>29<option>30
</select>ËçÅÒ¤±¤ë¡£</td>
</tr>
<tr>
<td>
<input type="button" value="Start!" onClick="starts(0);">
<input type="button" value="Stop!" onClick="starts(1);">
<input type="button" value="Reset" onClick="hajime();">
</td></tr></form>

</table>

</body>
</html>


[ ²òÀâ ]

¥ë¡¼¥ì¥Ã¥È¤¬²ó¤ëÁᤵ¤òÄ´À᤹¤ë¤Ë¤Ï¡¢ ¾å¤«¤é6¹ÔÌܤΡÖhayasa=100;¡×¤òÊѤ¨¤Þ¤¹¡£
¡Ö100¡×¤È½ñ¤«¤ì¤¿Éôʬ¤Ë¤ª¹¥¤­¤Ê¿ô»ú¤òÆþ¤ì¤Æ²¼¤µ¤¤¡£
Â礭¤¯¤·²á¤®¤ë¤È¡¢²ó¤ë´¶³Ð¤¬ÃÙ¤¯¤Ê¤ê¤¹¤®¤ë¤Î¤ÇÃí°Õ¡£

°ìÈֺǽé¤Î¥³¥¤¥ó¤ÎËç¿ô¤òÊѤ¨¤¿¤¤¾ì¹ç¤Ï¡¢ ¾å¤«¤é7¹ÔÌܤΡÖdocument.form1.kekka.value=50;¡×¤Î¡Ö50¡×¤òÊѹ¹¤·¤Æ²¼¤µ¤¤¡£

¥³¥¤¥ó¤ò»È¤¤²Ì¤¿¤·¤¿»þ¤Î¥á¥Ã¥»¡¼¥¸¤òÊѤ¨¤¿¤¤¾ì¹ç¤Ï¡¢¾å¤«¤é39¤Î
{alert("µ®Êý¤Ï¥³¥¤¥ó¤ò»È¤¤²Ì¤¿¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡Ä¡£");
¤òÊѹ¹¤·¤Þ¤¹¡£
¡Öµ®Êý¤Ï¥³¥¤¥ó¤ò»È¤¤²Ì¤¿¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡Ä¡£¡×¤ÎÉôʬ¤ò¤ª¹¥¤­¤Ê¥á¥Ã¥»¡¼¥¸¤ËÊѤ¨¤Æ²¼¤µ¤¤¡£

Åö¤¿¤ê¤¬½Ð¤¿¾ì¹ç¤ÎÇÜΨ¤òÊѤ¨¤¿¤¤¾ì¹ç¤Ï¡¢¾å¤«¤é8¹ÔÌܤˤ¢¤ë¡Öbai=2;¡×¤Î¡Ö2¡×¤òÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Î㤨¤Ð¸½ºß¤Ï¡¢Åö¤¿¤ê¤¬½Ð¤¿¤éÅÒ¤±¤¿¥³¥¤¥ó¤Î£²ÇܤΥ³¥¤¥ó¤ò³ÍÆÀ¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤Þ¤¹¤¬¡¢ ¤½¤ì¤ò£³ÇܤËÊѤ¨¤¿¤¤¤Ê¤é¡Öbai=3;¡×¤È¡¢Êѹ¹¤·¤Æ²¼¤µ¤¤¡£


¥Ð¥Ê¡¼¡¢¥ê¥ó¥¯¤Ë¤Ä¤¤¤Æ  ,   ÍøÍѵ¬Ìó  ,   ¥Ø¥ë¥×

Copyright (C) 1998-2007 WEST MiRa. All rights reserved.