喜欢一打开网站就知道今天网站的访问量的小朋友们请进
代码如下[code]<SCRIPT language=JavaScript>N5c3P,g&g6HLG5J b<!-- B*eR5aX!K
var caution = false
function setCookie(name, value, expires, path, domain, secure) {JC'O{9~E)U:q`M
var curCookie = name + "=" + escape(value) +Y$n5IYV
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +0\wTq_l8d^&|
((domain) ? "; domain=" + domain : "") +0mn]$wvVI
((secure) ? "; secure" : "")
if (!caution || (name + "=" + escape(value)).length <= 4000){juXs`v
document.cookie = curCookie
else
if (confirm("Cookie exceeds 4KB and will be cut!"))
document.cookie = curCookie
}
function getCookie(name) {
var prefix = name + "="*I g$g{2Y(`:Q
var cookieStartIndex = document.cookie.indexOf(prefix)
if (cookieStartIndex == -1)
return null?U^U[2V.N
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
if (cookieEndIndex == -1),B?^/}-K#z
cookieEndIndex = document.cookie.length
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))d_VnG+ky
}%^M.H } |-e^
function deleteCookie(name, path, domain) {'}wS2[9b2jU6|7o
if (getCookie(name)) {
document.cookie = name + "=" + k0I*}AE-b/C0t1Y
((path) ? "; path=" + path : "") +khL WuK3qO(KtYL/L
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT"
}'i'vs9dL{
}
function fixDate(date) {
var base = new Date(0).Z8E[$v){)?Of#D
var skew = base.getTime()
if (skew > 0)
date.setTime(date.getTime() - skew)1Q7yz(RB*W5ji[
}0wJ x&z#C};? b YT?
var now = new Date()
fixDate(now) |4rh&^(Z;b nC
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)E*\*WT.I5K
var visits = getCookie("counter")`v6g l3A/y_
if (!visits)
visits = 1
else y/[E A6W3kO"Ui
visits = parseInt(visits) + 1aXYHPF@&X1e9S
setCookie("counter", visits, now)/_#`V5DC] r
document.write("www.rvmtv.com欢迎光临本站,您是今天第" + visits + "访问者!")
// -->_MC$t:C7l]
</SCRIPT>[/code]
页:
[1]