有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>
脚本说明:<br>
<!-- 把如下代码加入<body>区域中 -->
<!-- http://www.webjx.com/js -->
<!-- bbs http://bbs.webjx.com -->
看看效果怎么样啊:<br>
<SCRIPT>
<!--
function initArray()
{
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
}
var DOWArray = new
initArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
var today = new Date();
var day = DOWArray[today.getDay()];
alert("今天是" + day + "! 如果" + day + ".htm 这个文件存在的话,页面就会自动转到那个页面.")
if (day == "Monday") window.location = "Monday.htm"
if (day == "Tuesday") window.location = "Tuesday.htm"
if (day == "Wednesday") window.location = "Wednesday.htm"
if (day == "Thursday") window.location = "Thursday.htm"
if (day == "Friday") window.location = "Friday.htm"
if (day == "Saturday") window.location = "Saturday.htm"
if (day == "Sunday") window.location = "Sunday.htm"
//-->
</SCRIPT>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]