您蒞臨的時間是 :

來訪時間與日期

將下列程式碼複製至<head>程式碼</head>區內

<div align="center">
<table border="1">
<tr>
<td align="center" bgcolor="#000000" border="0"><font size="5">
<script language="JavaScript">
<!--
function visitor()
{
//define variable
var Jsay;
var Jdayr;
var Jtoday= new Date();
var Jyear= Jtoday.getYear(); Jmonth=Jtoday.getMonth();
Jday= Jtoday.getDay(); Jdate=Jtoday.getDate();
Jhrs= Jtoday.getHours(); Jmin=Jtoday.getMinutes();
Jsec=Jtoday.getSeconds();
document.write("<font size=+2>");
document.write("<font color=khaki>");
if (Jhrs<12)
document.write("<font color=yellow>"+"早安"+"</font>");
else if (Jhrs<18)
document.write("<font color=red>"+"午安"+"</font>");
else
document.write("<font color=cyan>"+"晚安"+"</font>");
document.write('\t'+"<font color=white>"+'!!'+"</font>");
document.write("<font color=white>"+"今天是"+"</font>");
document.write('<font color=white>'+'民國'+'</font>'+(Jyear-1911)+"<font color=white>"+"年"+"</font>");
document.write((Jmonth+1));
document.write("<font color=white>"+"月"+"</font>"+Jdate+"<font color=write>"+"日"+"</font>");
if (Jday==1)
document.write("<font color=white>"+"星期"+"</font>"+"<font color=cyan>"+"一"+"</font>");
else if (Jday==2)
document.write("<font color=white>"+"星期"+"</font>"+"<font color=chartreuse>"+"二"+"</font>");
else if (Jday==3)
document.write("<font color=white>"+"星期"+"</font>"+"<font color=darksalmon>"+"三"+"</font>");
else if (Jday==4)
document.write("<font color=white>"+"星期"+"</font>"+"<font color=mediumaquamarine>"+"四"+"</font>");
else if (Jday==5)
document.write("<font color=white>"+"星期"+"</font>"+"<font color=lightgrey>"+"五"+"</font>");
else if (Jday==6)
document.write("<font color=white>"+"星期"+"</font>"+"<font color=orangered>"+"六"+"</font>");
else if (Jday==7)
document.write("<font color=white>"+"星期"+"</font>"+"<font color=dodgerblue>"+"日"+"</font>");
}
visitor();
//-->
</script><spacer size="10"><br>
您蒞臨的時間是 :
<script language="JavaScript">
<!--
//define variable
var Jsay;
var Jdayr;
var Jtoday= new Date();
var Jyear= Jtoday.getYear(); Jmonth=Jtoday.getMonth();
Jday= Jtoday.getDay(); Jdate=Jtoday.getDate();
Jhrs= Jtoday.getHours(); Jmin=Jtoday.getMinutes();
Jsec=Jtoday.getSeconds();
document.write('<b><font color=white size=+2>'+Jhrs+'點'+Jmin+'分');
document.write('</b></font>');
//-->
</script></font></td>
</tr>
</table>
</div>