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