自動更新Script
クリック ←予め今日の日付.html(例:2002/01/01⇒020101.html)を同一階層内に作成しておく
<html>
<head>
<title>自動更新スクリプト サンプル</title>
<script Language="JavaScript">
<!--
function jump()
{
thedate = new Date();
year = "0"+thedate.getYear();
month = "0"+(1+thedate.getMonth());
date = "0"+thedate.getDate();
year = year.substring(year.length-2,year.length+1);
month = month.substring(month.length-2,month.length+1);
date = date.substring(date.length-2,date.length+1);
status = year+""+month+""+date;
location.href = year+""+month+""+date+'.html';
}
-->
</script>
</head>
<body>
<a href="javaScript:jump()">クリック</a>
←予め今日の日付.html(例:2002/01/01⇒020101.html)を同一階層内に作成しておく
</body>
</html>