自我介紹
目前這裡有個人喔
document.write("")
now = new Date()
if (now.getDay() == 5)
document.write("哇!!終於盼到星期五了!!!" )
if (now.getDay() == 6)
document.write("星期六啦~祝您周末愉快!!! ")
if (now.getDay() == 0)
document.write("星期日!享受個美好的一天!" )
if (now.getDay() == 1)
document.write("星期一!呵呵~要開始工作囉!" )
if (now.getDay() == 2)
document.write("星期二~呼!星期一終於過了! " )
if (now.getDay() == 3)
document.write("星期三,小周末要上哪玩ㄚ? ")
if (now.getDay() == 4)
document.write("星期四,哈~明天就是星期五嘍! " )
document.write("")
/////////////
//
// Cookie Functions - Bill Dortch (21-Jan-96)
// The following functions are released to the
// public domain.
//
function GookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function Gookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires="
+ expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function Dookie(name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = Gookie (name);
document.cookie = name + "=" + cval + "; expires="
+ exp.toGMTString();
}
//
// End of cookie functions
//////////
var expdate = new Date();
// 設定期限為一年後
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
if(!(visits = Gookie("3wave"))) {visits = 1;
Sookie("3wave", visits, expdate, "/", null, false);
document.write("這是你第 " + visits + " 次到我這來坐坐喔>/////////////