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

¢£ JavaScript - ¥µ¥ó¥×¥ë½¸(257¼ïÎà) - DHTML
¡¡¡¡ - ƨ¤²¤ë¥ê¥ó¥¯

»Ï¤á¤Ë¸À¤Ã¤Æ¤ª¤­¤Þ¤¹¡£¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï²¼¤é¤Ê¤¤¤Ç¤¹¡£
¥ê¥ó¥¯¤¬²¿½è¤Þ¤Ç¤âƨ¤²¤Æ¤¤¤­¤Þ¤¹¡£¤½¤ì¤òÄɤ¤¤«¤±¤ë¤À¤±¤Ç¤¹¡£
¤ª²Ë¤Ê¤é¡¢¥¯¥ê¥Ã¥¯¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

ƨ¤²¤ë¥ê¥ó¥¯¤ò²èÁü¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢Êä­¤ò¤´Í÷²¼¤µ¤¤¡£
Ê䭤ϡ¢¥Ú¡¼¥¸¤Î²¼Éô¤Ë¤¢¤ê¤Þ¤¹¡£

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





[ ¥½¡¼¥¹ ]

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">

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

	my_bun=new Array();

	//¥¯¥ê¥Ã¥¯¤µ¤ì¤¿»þ¤Ëɽ¼¨¤·¤¿¤¤¥á¥Ã¥»¡¼¥¸¤ò»ØÄꤹ¤ë
	my_bun[0]="¥¯¥ê¥Ã¥¯¤·¤Ê¤¤¤Ç¤Ã¤Æ¸À¤Ã¤¿¤Î¤Ë¡Ä¡Ä";
	my_bun[1]="²¿¤«ÍÑ¡©";
	my_bun[2]="¤´¶ìÏ«ÍͤǤ·¤¿¡Á¡£";
	my_bun[3]="¥¢¥é¡¼¥È¤¬¤Ç¤ë¤À¤±¤À¤Ã¤¿¤ê¡£";
	my_bun[4]="¤¢¤é¡¢Êá¤Þ¤Ã¤Á¤ã¤Ã¤¿¡£";

	iti_value=60;
	x_ima=0;    y_ima=0;    x_iti=0;   y_iti=0;
	x_moto=0;  y_moto=0;
	function basyo_han(e){
		if((document.layers) || ((document.getElementById) && (!document.all)))
		    {
		    x_max=outerWidth;
		    y_max=outerHeight;}
		else 
		    {
		    x_max=document.body.clientWidth;
		    y_max=document.body.clientHeight;
		    }

		if(document.layers)
			{x_iti=e.pageX;  y_iti=e.pageY;}
		else if((document.getElementById) && (!document.all))
			{x_iti=e.pageX;  y_iti=e.pageY;}
		else if(document.all)
			{x_iti=document.body.scrollLeft+event.clientX;
			 y_iti=document.body.scrollTop+event.clientY;}
		idou_ran=Math.floor(Math.random()*50);
		hyouji();}

	function idou(){
		if(document.layers)
			document.layers["lay0"].moveTo(x_ima,y_ima);
		else if((document.getElementById) && (!document.all))
			{
			document.getElementById("lay0").style.left=x_ima;
			document.getElementById("lay0").style.top=y_ima;
			}
		else if(document.all)
			{
			document.all("lay0").style.pixelLeft=x_ima;
			document.all("lay0").style.pixelTop=y_ima;
			}
		}

	function hyouji(){
		if(x_moto>x_iti && x_iti-iti_value-idou_ran>iti_value)x_ima=x_iti-iti_value-idou_ran;
		else if(x_moto<=x_iti && x_iti+iti_value+idou_ran<x_max)x_ima=x_iti+iti_value+idou_ran;
		else x_ima=Math.floor(Math.random()*x_iti)+iti_value;
		if(y_moto>y_iti && y_iti-iti_value-idou_ran>iti_value)y_ima=y_iti-iti_value-idou_ran;
		else if(y_moto<=y_iti && y_iti+iti_value+idou_ran<y_max)x_ima=y_iti+iti_value+idou_ran;
		else y_ima=Math.floor(Math.random()*y_iti)+iti_value;

		idou();

		if(Math.floor(Math.random()*4)%2==0)
			{
			if(x_iti-x_ima<10){x_ima-=30;}
			else if(x_ima-x_iti<10){x_ima+=30;}
			if(y_iti-y_ima<10){y_ima-=30;}
			else if(y_ima-y_iti<10){y_ima+=30;}
			idou();
			}

		x_moto=x_iti;  y_moto=y_iti;
		return false;}

	function my_click(){
		dore=Math.floor(Math.random()*my_bun.length);
		alert(my_bun[dore]);
		x_ima=Math.floor(Math.random()*x_max-x_iti);
		y_ima=Math.floor(Math.random()*y_max-y_iti);
		idou();}

	if(document.layers)document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove=basyo_han;

//-->
</script>

</head>

<body>

<span id="lay0" style="position:absolute;visibility:visible;">
<strong><a href="JavaScript:my_click();">[ Ãí°Õ ]¥¯¥ê¥Ã¥¯¶Ø»ß¡ª</a></strong>
</span>

¡¡¡¦
¡¡¡¦
¡¡¡¦

</body></html>


[ ²òÀâ ]

¾å¤«¤é6¡Á10¹ÔÌܤˤ¢¤ë¡Ö¥¯¥ê¥Ã¥¯¤·¤Ê¤¤¤Ç¤Ã¤Æ¸À¤Ã¤¿¤Î¤Ë¡Ä¡Ä¡×¤È¸À¤Ã¤¿Ê¸»úÎó¤Ï¡¢¤ª¹¥¤­¤Ê¤è¤¦¤Ë¤´Êѹ¹²¼¤µ¤¤¡£

¤Þ¤¿¡¢²¼¤ÎÊý¤Ë¤¢¤ë¡Ö[ Ãí°Õ ] ¥¯¥ê¥Ã¥¯¶Ø»ß¡ª¡×¤Îʸ»ú¤â¡¢¹¥¤­¤Êʸ»ú¤Ë¤´Êѹ¹²¼¤µ¤¤¡£

¡ÊÊä­¡Ë

¡Ö[ Ãí°Õ ] ¥¯¥ê¥Ã¥¯¶Ø»ß¡ª¡×¤Îʸ»ú¤ò²èÁü¤ËÊѤ¨¤¿¤¤¾ì¹ç¡¢ ʸ»úÎó¤ÎÂå¤ï¤ê¤Ë²èÁü¥¿¥°¤ò¤ª½ñ¤­²¼¤µ¤¤¡£

Îã¡Ë
<a href="JavaScript:my_click();">
<img src="../button1.gif">
</a>


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

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