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

¢£ JavaScript - ¥µ¥ó¥×¥ë½¸(257¼ïÎà) - ²»³Ú
¡¡¡¡ - ÆüÉդˤè¤Ã¤ÆÊѤï¤ë¶Ê

ÀßÄꤷ¤¿ÆüÉդξì¹ç¡¢»ØÄꤷ¤¿¶Ê¤¬É½¼¨¤µ¤ì¤ë¥¹¥¯¥ê¥×¥È¤Ç¤¹¡£
Î㤨¤Ð¤ªÀµ·î¤Ë¤Ï¤ªÀµ·îÍѶʤòɽ¼¨¤µ¤»¤ë¡¢¥¯¥ê¥¹¥Þ¥¹¤Ë¤Ï¥¯¥ê¥¹¥Þ¥¹¶Ê¤òɽ¼¨¤µ¤»¤ë¡¢ ¤È¸À¤Ã¤¿»È¤¤Æ»¤¬¤¢¤ê¤Þ¤¹¡£

¥µ¥ó¥×¥ë¤Ç¤Ï1·î1Æü¡¢3·î3Æü¡¢5·î5Æü¡¢12·î25Æü¤Î¾ì¹ç¤Ï¶Ê¤¬ÊѤï¤ë¤è¤¦¤ËÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£
¥Þ¥·¥ó¤ÎÆüÉÕ¤ò¿§¡¹¤ÈÊѹ¹¤·¤Æ³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

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





[ ¥½¡¼¥¹ ]

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

<body>

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

	MyMon=new Array();
	MyDay=new Array();
	MyData=new Array();

	//¥Ç¡¼¥¿1¤òɽ¼¨¤·¤¿¤¤·î¤ò»ØÄꤹ¤ë
	MyMon[0]=1;
	//¥Ç¡¼¥¿1¤òɽ¼¨¤·¤¿¤¤Æü¤ò»ØÄꤹ¤ë
	MyDay[0]=1;
	//¥Ç¡¼¥¿1¤Î¶Ê¤ò»ØÄꤹ¤ë
	MyData[0]='../../sound/do.mid';


	//¥Ç¡¼¥¿2¤òɽ¼¨¤·¤¿¤¤·î¤ò»ØÄꤹ¤ë
	MyMon[1]=3;
	//¥Ç¡¼¥¿2¤òɽ¼¨¤·¤¿¤¤Æü¤ò»ØÄꤹ¤ë
	MyDay[1]=3;
	//¥Ç¡¼¥¿2¤Î¶Ê¤ò»ØÄꤹ¤ë
	MyData[1]='../../sound/do2.mid';


	//¥Ç¡¼¥¿3¤òɽ¼¨¤·¤¿¤¤·î¤ò»ØÄꤹ¤ë
	MyMon[2]=5;
	//¥Ç¡¼¥¿3¤òɽ¼¨¤·¤¿¤¤Æü¤ò»ØÄꤹ¤ë
	MyDay[2]=5;
	//¥Ç¡¼¥¿3¤Î¶Ê¤ò»ØÄꤹ¤ë
	MyData[2]='../../sound/fa.mid';


	//¥Ç¡¼¥¿4¤òɽ¼¨¤·¤¿¤¤·î¤ò»ØÄꤹ¤ë
	MyMon[3]=12;
	//¥Ç¡¼¥¿4¤òɽ¼¨¤·¤¿¤¤Æü¤ò»ØÄꤹ¤ë
	MyDay[3]=25;
	//¥Ç¡¼¥¿4¤Î¶Ê¤ò»ØÄꤹ¤ë
	MyData[3]='../../sound/mi.mid';


	//¥Ç¥Õ¥©¥ë¥È¤Î¶Ê¤ò»ØÄꤹ¤ë
	Defaultdata='../../sound/so.mid';

	hiduke=new Date();
	tuki=hiduke.getMonth()+1;
	kyou=hiduke.getDate();
	for(i=0; i < MyMon.length; i++)
		if(MyMon[i] == tuki && MyDay[i] == kyou)
		{
		document.write('<embed src="'+MyData[i]+'" type="audio/x-midi" autostart="true" >');
		break;
		}
	if(i >= MyMon.length)
		document.write('<embed src="'+Defaultdata+'" type="audio/x-midi" autostart="true">');

//-->
</script>

<noscript>
<!-- JavaScriptÈóÂбþ¥Ö¥é¥¦¥¶ÍѤζʤò»ØÄꤹ¤ë -->
	<embed src="../../sound/so.mid" type="audio/x-midi" autostart="true">
</noscript>

</body></html>


[ ²òÀâ ]

¤Þ¤º¡¢´üÆü¤È¥Ç¡¼¥¿¤òÀßÄꤷ¤Þ¤¹¡£

ÀßÄꤹ¤ë¥Ç¡¼¥¿¤Ï¡¢
¶Ê¤òÊѹ¹¤¹¤ë·î
¶Ê¤òÊѹ¹¤¹¤ëÆü
¶ÊURL
¤Î3¤Ä¤ÇÀ®¤êΩ¤Ã¤Æ¤¤¤Þ¤¹¡£

¥µ¥ó¥×¥ë¥Ç¡¼¥¿¤ò¸«¤Æ¤ß¤Þ¤·¤ç¤¦¡£

MyMon[0]=1;
MyDay[0]=1;
MyData[0]='../sound/do.mid';

¤Þ¤º1¹ÔÌܤΡÖMyMon[0]=1;¡×¤Ç¶Ê¤òÊѹ¹¤¹¤ë·î¤Î¡Ö1¡×¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£
¼¡¤Ë2¹ÔÌܤΡÖMyDay[0]=1;¡×¤Ç¶Ê¤òÊѹ¹¤¹¤ëÆü¤Î¡Ö2¡×¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£
ºÇ¸å¤Ë3¹ÔÌܤΡÖMyData[0]='../sound/do.mid';¡×¤Ç¶ÊURL¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£

Ʊ¤¸½ñ¼°¤Ë½¾¤Ã¤Æ¡¢¥Ç¡¼¥¿¤Ï½ñ¤­Âؤ¨¤Æ¤¯¤À¤µ¤¤¡£
ɬ¤º·î¡¢Æü¡¢¶ÊURL¤Î3¤Ä¤ò½ñ¤­Âؤ¨¤Æ²¼¤µ¤¤¡£

¤â¤·¥Ç¡¼¥¿¤ò¸º¤é¤·¤¿¤¤¾ì¹ç¤Ï¡¢¥Ç¡¼¥¿¤ò1¤Äʬ¡Ê¤¹¤Ê¤ï¤Á3¹Ô¡Ë¤ò¤Þ¤È¤á¤Æ¾Ãµî¤·¤Þ¤¹¡£

Î㤨¤Ð¥µ¥ó¥×¥ë¤«¤é¥Ç¡¼¥¿¤ò1¤Äºï½ü¤¹¤ë¾ì¹ç¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

Êѹ¹Á°Êѹ¹¸å
MyMon[0]=1;
MyDay[0]=1;
MyData[0]='../sound/do.mid';

MyMon[1]=3;
MyDay[1]=3;
MyData[1]='../sound/do2.mid';

MyMon[2]=5;
MyDay[2]=5;
MyData[2]='../sound/fa.mid';

MyMon[3]=12;
MyDay[3]=25;
MyData[3]='../sound/mi.mid';

MyMon[0]=1;
MyDay[0]=1;
MyData[0]='../sound/do.mid';

MyMon[1]=3;
MyDay[1]=3;
MyData[1]='../sound/do2.mid';

MyMon[2]=5;
MyDay[2]=5;
MyData[2]='../sound/fa.mid';


È¿ÂФˡ¢¥Ç¡¼¥¿¤òÁý¤ä¤¹¾ì¹ç¤Ïºï½ü¤¹¤ë¾ì¹ç¤ÈµÕ¤Ç¥Ç¡¼¥¿¤òÁý¤ä¤·¤Æ¤¤¤­¤Þ¤¹¡£

¤¿¤À¤·¡¢¤³¤Î»þÃí°ÕÅÀ¤¬1¤Ä¤¢¤ê¤Þ¤¹¡£

¥Ç¡¼¥¿¤ÎÀèƬÉôʬ¤ò¸«¤Æ¤ß¤Þ¤¹¤È¡¢¿ôÃÍÉôʬ¤¬¤¢¤ê¤Þ¤¹¤Í¡£
³Æ¥Ç¡¼¥¿¤Î¤Þ¤È¤Þ¤ê¤Ï¡¢Á´¤ÆƱ¤¸¿ôÃͤ¬Æþ¤Ã¤Æ¤¤¤Þ¤¹¡£
¤½¤·¤Æ¼¡¤Î¥Ç¡¼¥¿¤Ë¤Ê¤ë¤È¡¢¿ôÃͤ¬1¤Ä·«¤ê¾å¤¬¤Ã¤Æ¤¤¤Þ¤¹¡£

¤½¤ì¤ÈƱ¤¸Í×ÎΤǡ¢É¬¤º¿ôÃÍÉôʬ¤ò1¤Ä¤º¤ÄÁý¤ä¤·¤Æ¤¤¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£

Î㤨¤Ð¥µ¥ó¥×¥ë¤Ë¥Ç¡¼¥¿¤ò1¤ÄÄɲ乤ë¤È¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

Êѹ¹Á°Êѹ¹¸å
MyMon[0]=1;
MyDay[0]=1;
MyData[0]='../sound/do.mid';

MyMon[1]=3;
MyDay[1]=3;
MyData[1]='../sound/do2.mid';

MyMon[2]=5;
MyDay[2]=5;
MyData[2]='../sound/fa.mid';

MyMon[3]=12;
MyDay[3]=25;
MyData[3]='../sound/mi.mid';

MyMon[0]=1;
MyDay[0]=1;
MyData[0]='../sound/do.mid';

MyMon[1]=3;
MyDay[1]=3;
MyData[1]='../sound/do2.mid';

MyMon[2]=5;
MyDay[2]=5;
MyData[2]='../sound/fa.mid';

MyMon[3]=12;
MyDay[3]=25;
MyData[3]='../sound/mi.mid';

MyMon[4]=10;
MyDay[4]=1;
MyData[4]='../sound/ra.mid';

¼¡¤Ë¡¢»ØÄêÆü°Ê³°¤ÎÄ̾ï»þ¤Ëɽ¼¨¤¹¤ë¶Ê¤ò»ØÄꤷ¤Þ¤¹¡£

¾å¤«¤é26¹ÔÌܤˤ¢¤ë¡ÖDefaultdata='../sound/so.mid';¡×¤ËÄ̾ï»þ¤Ëɽ¼¨¤µ¤»¤¿¤¤¶ÊURL¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£


ºÇ¸å¤Ë¡¢JavaScript¤¬Ìµ¸ú¤Î¿ÍÍѤ˶ʤòÀßÄꤷ¤Þ¤¹¡£

²¼¤«¤é4¹ÔÌܤˤ¢¤ë
<embed src="../sound/so.mid" type="audio/x-midi" autostart="true">
Éôʬ¤òÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£

¤Þ¤¿¡¢³Æ¶Ê°Ê³°¤Î°À­¤Ï¡¢¤ª¹¥¤­¤Ê¤è¤¦¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤·¤Æ¤¯¤À¤µ¤¤¡£

»ØÄêÆü¤ÎÆü¤Î°À­¤Ï¡¢²¼¤«¤é13¹ÔÌܤˤ¢¤ë
document.write('<embed src="'+MyData[i]+'" type="audio/x-midi" autostart="true" >');
Éôʬ¤òÊѹ¹¤·¤Þ¤¹¡£

»ØÄêÆü°Ê³°¤Î°À­¤Ï¡¢²¼¤«¤é9¹ÔÌܤˤ¢¤ë
document.write('<embed src="'+Defaultdata+'" type="audio/x-midi" autostart="true">');
¤òÊѹ¹¤·¤Þ¤¹¡£

Îã
document.write('<embed src="'+MyData[i]+'" type="audio/x-midi" autostart="true" loop="true">');

JavaScript¤¬¥ª¥Õ¤Î¾ì¹ç¤Î°À­¤Ï¡¢²¼¤«¤é4¹ÔÌܤΥ¿¥°¤òÉáÄ̤˽ñ¤­Âؤ¨¤Æ²¼¤µ¤¤¡£


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

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