最終更新日を表示する
<script language="javascript">
document.write("Last Updated : ",document.lastModified);
</script>
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 + "日")
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 + "日")