捌玖网络工作室's Archiver

tianya 发表于 2008-4-29 14:58

喜欢一打开网站就知道今天网站的访问量的小朋友们请进

代码如下[code]<SCRIPT language=JavaScript>
jt-V DN L"S W <!--
9w t ^ONl};h 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) +
z3M#XV-s7[ ((expires) ? "; expires=" + expires.toGMTString() : "") +
%qE9uL \ r0lV ((path) ? "; path=" + path : "") +
] JeC+c!l?1n ((domain) ? "; domain=" + domain : "") +
1I;\"LoCS.{j!^H ((secure) ? "; secure" : "")G0\'gOWC,g
if (!caution || (name + "=" + escape(value)).length <= 4000):qy b: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
}
:CV*qKc:TbB:}$[ 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)
'[4So/P^ return null
X/XRL$c 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))
}8_:b w8r5V/t!Y }C"r1jd)TV#w*^
function deleteCookie(name, path, domain) {W1w4Oo;t
if (getCookie(name)) {
5`#XW { Ap*jB5m7y"A 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"
jkgy \W| }!T1IR2D ^}2i
}:IB7F^R DrF6Z$J
function fixDate(date) {8g%q8O4D+q!@t
var base = new Date(0)
5Rd`4R9xn n w mp var skew = base.getTime()-ys9^AZ]d
if (skew > 0) g@![/jk*e3w? w
date.setTime(date.getTime() - skew)#X3fS8_)Z,}
}
H-A5j@i.{&~O var now = new Date()i"MN$C(]c
fixDate(now),`^i"QPF
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)
9\G1N-@r var visits = getCookie("counter")YnAK(H{G2q[B `
if (!visits)+CrJGK`8S
visits = 1
.^:S?\o else6hI"C&l#@hCB3p5b4T
visits = parseInt(visits) + 1
:Hy;VXL.z setCookie("counter", visits, now)k[2}Zxo)e
document.write("www.rvmtv.com欢迎光临本站,您是今天第" + visits + "访问者!")/I+u.^4g;V&G:[ P [
// -->
)r2jm9Rv(yn </SCRIPT>[/code]

页: [1]
【捌玖网络】已经运行:


Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.