?? 檢測星期幾并導航.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 + -