喜欢一打开网站就知道今天网站的访问量的小朋友们请进
代码如下[code]<SCRIPT language=JavaScript> [+^YpzJY`<!-- H+R%CB!lLV@
var caution = false
function setCookie(name, value, expires, path, domain, secure) { ~!n z4btv#G
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") + O:V y:OVv oRc1I;aFt
((path) ? "; path=" + path : "") +:Yy$@6msz5^6AG
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
if (!caution || (name + "=" + escape(value)).length <= 4000)
document.cookie = curCookie
else
if (confirm("Cookie exceeds 4KB and will be cut!"))
document.cookie = curCookieC$lf4T`b&Rd
}"iQAn[+k
function getCookie(name) {'Hgz'T;[9uU
var prefix = name + "="
var cookieStartIndex = document.cookie.indexOf(prefix)a*G6M ^,_U"M|
if (cookieStartIndex == -1)
return null
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
if (cookieEndIndex == -1)e Ps0{%s F
cookieEndIndex = document.cookie.length"d\(Ph}s,f.j
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))5`"RK[,Jr"M@
}5FxU#Ust
function deleteCookie(name, path, domain) {
if (getCookie(name)) {~C4V T)F
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +8vBf]._0CLj3H
((domain) ? "; domain=" + domain : "") +iU?2t;v\+v@.@
"; expires=Thu, 01-Jan-70 00:00:01 GMT"bX4I.pT,H4J+_c
}
}+CUP h1z u8w:y%t
function fixDate(date) {;Tk#WOc,E.s
var base = new Date(0)RQ2t [b-_V/Ss
var skew = base.getTime()
if (skew > 0)(~(z+dB-B7c zo {
date.setTime(date.getTime() - skew)
}I@K&E'G0?(`+s
var now = new Date()&DJ }s0W)DG9j
fixDate(now)Ui4yG p o
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)
var visits = getCookie("counter")
if (!visits)
visits = 1
else/q4S%@5U.IHF
visits = parseInt(visits) + 1
setCookie("counter", visits, now)e z MsU0L9Q;z
document.write("www.rvmtv.com欢迎光临本站,您是今天第" + visits + "访问者!")1p~o:G3^f
// -->y,Cs'T`*K"Q7{
</SCRIPT>[/code]
页:
[1]