📄 检测星期几并导航.txt
字号:
<html>
<head>
<title>检测星期几并导航</title>
<style type="text/css">
<!--
body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 4px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: none }
A:hover { COLOR: red; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 }
--></style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#caeeff">
<br>
<br>
<center><font color=red face="隶书" size=6>检测星期几并导航</font></center>
<br>
<center>
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面框中为脚本显示区</strong></font></td></tr>
<tr><td align=center height=80> <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 + "这个文件存在的话,页面就会自动转到那个页面.")
if (day == "Monday") window.location = "http://gongshang.3322.net"
if (day == "Tuesday") window.location = "http://gong-shang.myetang.com"
if (day == "Wednesday") window.location = "http://gongshang315.home.chinaren.com"
if (day == "Thursday") window.location = "http://gongshang/go.163.com"
if (day == "Friday") window.location = "http://gongshang.3322.net"
if (day == "Saturday") window.location = "http://www.nm315.com"
if (day == "Sunday") window.location = "http://gongshang.3322.net"
//-->
</SCRIPT>
</td></tr></table></center>
<br>
<br>
<center>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide
function goHist(a)
{
history.go(a);
}
//-->
</script>
<FORM METHOD="post">
<INPUT TYPE="button" VALUE="返回" onClick="goHist(-1)" style="background-color: #8000FF; color: rgb(255,255,255)">
</form>
</center>
<br>
<center>
<textarea name=source rows=12 cols=55 class=yk9 onFocus="this.select()" onMouseOver="this.focus()">
脚本说明:
把如下代码加入<body>区域中:
<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("Today is " + day + "! If the file " + day + ".html had existed, you would have been taken there.")
if (day == "Monday") window.location = "Monday.html"
if (day == "Tuesday") window.location = "Tuesday.html"
if (day == "Wednesday") window.location = "Wednesday.html"
if (day == "Thursday") window.location = "Thursday.html"
if (day == "Friday") window.location = "Friday.html"
if (day == "Saturday") window.location = "Saturday.html"
if (day == "Sunday") window.location = "Sunday.html"
//-->
</SCRIPT>
</textarea>
<br><div align=center>
<p><script language="JavaScript1.1" src=http://ad.t2t2.com/textclick.asp?user=gongshang&style=1&bkcolor=no></script></p>
<p><script>document.write("<a href=http://www.textclick.com/viewmain.asp?name=gongshang target=_blank><img src=http://ad.t2t2.com/stat.asp?user=gongshang&refer="+escape(document.referrer)+"&cur="+escape(document.URL)+" alt=太极统计 border=0></a>");</script></p>
</div>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -