ÀßÄꤷ¤¿Æü¤Ë¤Á¤Þ¤ÇÆü¿ô¤ò¥«¥¦¥ó¥È¥À¥¦¥ó¤·¤Þ¤¹¡£
¤³¤ì¤Ï¡Ö²¿·î²¿Æü¡×¤Ç¥«¥¦¥ó¥È¥À¥¦¥ó¤¹¤ë¤Î¤Ç¡¢°ìÅÙÀßÄꤹ¤ë¤È
ÀßÄêÆü¤ò±Û¤¨¤ë¤È¡¢¼«Æ°Åª¤Ë¼¡¤Îǯ¤ÎÀßÄêÆü¤Þ¤Ç¤Î¥«¥¦¥ó¥È¥À¥¦¥ó¤ò»Ï¤á¤Þ¤¹¡£
¤È¤ê¤¢¤¨¤º¥¯¥ê¥¹¥Þ¥¹¤Þ¤Ç¤Î¥«¥¦¥ó¥È¥À¥¦¥ó¤Ç¤¹¡£
¡¦¥µ¥ó¥×¥ë¤ò¸«¤ë
¡¦¥½¡¼¥¹¤òÊݸ¤¹¤ë ¡Ê±¦¥¯¥ê¥Ã¥¯¢ª¡ÖÂоݤò¥Õ¥¡¥¤¥ë¤ËÊݸ¡×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
//¥«¥¦¥ó¥È¥À¥¦¥ó¤¹¤ë·î¤ò»ØÄꤹ¤ë
tuki=12;
//¥«¥¦¥ó¥È¥À¥¦¥ó¤¹¤ëÆü¤ò»ØÄꤹ¤ë
hi=25;
//¥«¥¦¥ó¥È¥À¥¦¥óÃæ¤Ëɽ¼¨¤¹¤ëʸ»ú¤ÎÁ°È¾
moji1='¥¯¥ê¥¹¥Þ¥¹¤Þ¤Ç¸å';
//¥«¥¦¥ó¥È¥À¥¦¥óÃæ¤Ëɽ¼¨¤¹¤ëʸ»ú¤Î¸åȾ
moji2='Æü';
//¥«¥¦¥ó¥È¥À¥¦¥ó¥¼¥í¤Çɽ¼¨¤¹¤ëʸ»ú
moji3='º£Æü¤Ï¥¯¥ê¥¹¥Þ¥¹';
function count()
{
hiduke=new Date();
ima=hiduke.getTime();
tosi=hiduke.getFullYear();
my=new Date(tosi+'/'+tuki+'/'+hi).getTime();
if(my < ima && ima < my+86400000)document.form1.text1.value=moji3;
else
{
if(my<ima)my+=31536000000;
my=Math.ceil((my-ima)/60/60/24/1000);
document.form1.text1.value=moji1+my+moji2;
}
}
//-->
</script>
</head>
<body onLoad="count();">
<form name="form1">
<input type="text" name="text1" size="30">
</form>
</body></html>
[ ²òÀâ ]
¥«¥¦¥ó¥È¥À¥¦¥ó¤·¤¿¤¤ÆüÉÕ¤ò¡¢¤½¤ì¤¾¤ì·î¡¢ÆüÊ̤ǵÆþ¤·¤Þ¤¹¡£
¤Þ¤º¾å¤«¤é7¹ÔÌܤΡÖtuki=5;¡×¤Ë·î¡¢¼¡¤Î¹Ô¤Î¡Öhi=15;¡×¤ËÆü¤Ë¤Á¤òÆþ¤ì¤Æ²¼¤µ¤¤¡£
¿ô»ú¤Ïɬ¤ºÈ¾³Ñʸ»ú¤Ç½ñ¤¤¤Æ²¼¤µ¤¤¡£
¾å¤«¤é9¹ÔÌܤˤ¢¤ë¡Ö¥¯¥ê¥¹¥Þ¥¹¤Þ¤Ç¸å¡×¤È½ñ¤¤¤Æ¤¢¤ëÉôʬ¤Ë¡¢
°ìÂβ¿¤ÎÆü¤Þ¤Ç¤Î¥«¥¦¥ó¥È¥À¥¦¥ó¤Ê¤Î¤«Å¬ÀÚ¤ÊÀâÌÀ¤ÎÁ°È¾Éôʬ¤ò¡¢
¼¡¤Î¹Ô¤Î¡ÖÆü¡×¤Ë¸åȾÉôʬ¤òµÆþ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤Þ¤¿¡¢¾å¤«¤é11¹ÔÌܤΡֺ£Æü¤Ï¥¯¥ê¥¹¥Þ¥¹¡×¤Ë»ØÄêÆüÅöÆü¤Ëɽ¼¨¤¹¤ë¥á¥Ã¥»¡¼¥¸¤ò¤´µÆþ²¼¤µ¤¤¡£
|