今日は何日?

 ← 月を英語で表示します

 下のタグをソースに貼り付けてお使いください。


HEADタグの中に記入
<SCRIPT language="JavaScript">

<!--
//月表示を英語表記にする
var today, year, month, day;
today = new Date();
year = today.getYear();
if(year < 2000) year += 1900;
month = today.getMonth();
day = today.getDate();


mon = new Array(12);
mon[0] = "Jan";
mon[1] = "Feb";
mon[2] = "Mar";
mon[3] = "Apr";
mon[4] = "May";
mon[5] = "Jun";
mon[6] = "Jul";
mon[7] = "Aug";
mon[8] = "Sep";
mon[9] = "Oct";
mon[10] = "Nov";
mon[11] = "Dec";


//-->
</SCRIPT>

BODYの日付を表示したいところへ挿入
<SCRIPT language="JAVASCRIPT">
<!--
document.write("today:",mon[month],".",day,".",year,"<BR>");
//-->
</SCRIPT>



BACK