中文(简体)
脚本说明:<br> <!-- 把如下代码加入<body>区域中 --> <!-- http://www.downcodes.com/js --> <!-- bbs http://bbs.downcodes.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>