喜欢一打开网站就知道今天网站的访问量的小朋友们请进
代码如下[code]<SCRIPT language=JavaScript><!--
var caution = false/sa#s u]b v!c+O,F"J
function setCookie(name, value, expires, path, domain, secure) {:n%A|?G?9e
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")G0\'gOWC,g
if (!caution || (name + "=" + escape(value)).length <= 4000):qyb:Nx6BJ/u
document.cookie = curCookie4?,c'wh7QAf-R
else.|7c1wF&dSJ
if (confirm("Cookie exceeds 4KB and will be cut!"))1o2U:GcrC
document.cookie = curCookie5]y#I(W] o S
}
function getCookie(name) {)}7F z,Y}^#^9P;j
var prefix = name + "=":{A3K7d(rj(B
var cookieStartIndex = document.cookie.indexOf(prefix);tdm8bd/P
if (cookieStartIndex == -1)
return null
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)@#[ C'D,Z
if (cookieEndIndex == -1)L|V Z'K)a)U9_
cookieEndIndex = document.cookie.length SLb%\M&vEe
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}C"r1jd)TV#w*^
function deleteCookie(name, path, domain) {W1w4Oo;t
if (getCookie(name)) {
document.cookie = name + "=" + "l9zE%wy.m&[!S j
((path) ? "; path=" + path : "") +$PZn6AOM5h9m%V
((domain) ? "; domain=" + domain : "") +-d6p yU AI
"; expires=Thu, 01-Jan-70 00:00:01 GMT"
}!T1IR2D^}2i
}:I B7F^R DrF6Z$J
function fixDate(date) {8g%q8O4D+q!@t
var base = new Date(0)
var skew = base.getTime()-ys9^AZ]d
if (skew > 0)g@![/jk*e3w? w
date.setTime(date.getTime() - skew)#X3fS8_)Z,}
}
var now = new Date()i"MN$C(]c
fixDate(now),`^i"QPF
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)
var visits = getCookie("counter")YnAK(H{G2q[B `
if (!visits)+CrJGK`8S
visits = 1
else6hI"C&l#@hCB3p5b4T
visits = parseInt(visits) + 1
setCookie("counter", visits, now)k[2}Zxo)e
document.write("www.rvmtv.com欢迎光临本站,您是今天第" + visits + "访问者!")/I+u.^4g;V&G:[ P [
// -->
</SCRIPT>[/code]
页:
[1]