※ 判斷日期 ※
   加入網頁步驟  
 
  1. 將以下的控制碼先複製起來。(用滑鼠將底下的一堆碼,標記起來,按滑鼠右鍵選擇【複製】就行啦!)

  2. 然後在網頁中的 </HEAD> 之後將剛剛複製的東西貼上就大功告成了  !(按滑鼠右鍵選擇【貼上】就行啦!)

Copyright Power Information All Rights Reserved.

※判斷日期展示區※


<script language="JavaScript">
var vn="Microsoft Internet Explorer";
var some;
if(navigator.appName!=vn)
some="11";
else
some="1911";
var enabled = 0; today = new Date();
var day; var date;
if(today.getDay()==0) day = "星期日"
if(today.getDay()==1) day = "星期一"
if(today.getDay()==2) day = "星期二"
if(today.getDay()==3) day = "星期三"
if(today.getDay()==4) day = "星期四"
if(today.getDay()==5) day = "星期五"
if(today.getDay()==6) day = "星期六"
document.fgColor = "000000";
date = " 今天是中華民國 " + (today.getYear()-some) + " 年" + (today.getMonth() + 1 ) + " 月 " + today.getDate() + " 日 " + day +"";
document.write("<CENTER><TABLE BORDER=3 BGCOLOR=000000><TH><FONT COLOR=ccff00>")
document.write("<CENTER>" + date.fontsize(3) + "</CENTER>");
document.write("</FONT></TH></TABLE></center><P>")
</script>