About  Code  Homepage  JavaScript  Memo  MovableType  PhpScript  Study  Template  Tools  Vista 

Update 最終更新日

〔注〕jsファイルと呼び出すファイルの文字コードを同じにする。

〔例〕
<script language="javascript">
document.write("Last Updated : ",document.lastModified);
</script>
〔例〕
update = new Date(document.lastModified)
theMonth = update.getMonth() + 1
theDate = update.getDate()
theYear = update.getYear()
if (navigator.appName == "Netscape") {
       theYear = theYear + 1900
    }
    if (navigator.appName == "Opera") {
       theYear = theYear + 1900
    }
document.writeln("最終更新日:" + theYear + "年" + theMonth + "月" + theDate + "日")
PopupWindow Bookmarkお気に入り追加