捌玖网络工作室's Archiver

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

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

代码如下[code]<SCRIPT language=JavaScript> a ft^ utyR
<!--
H1W`aC(A-q2~n var caution = false
R6k a6a!E+_E function setCookie(name, value, expires, path, domain, secure) {/?UDCA HS
var curCookie = name + "=" + escape(value) +
Q/j Yv-\@4v9z k J m ((expires) ? "; expires=" + expires.toGMTString() : "") +
0h9whj$Jo ((path) ? "; path=" + path : "") +Io7ZT*f4@ CX s{I
((domain) ? "; domain=" + domain : "") +QP |*d1a m#T4g
((secure) ? "; secure" : "")
?sf |#G2@ if (!caution || (name + "=" + escape(value)).length <= 4000)
o Owg7Q r6or document.cookie = curCookie
@-Qx ue&KS else BD1x)tckO?(VkV
if (confirm("Cookie exceeds 4KB and will be cut!")):tv:V,H:FO
document.cookie = curCookie
2i'\5]-s |.V7n-t }8L'zO9w7u/u
function getCookie(name) {
P%y2y/p9]E*BY var prefix = name + "="{-D bTV|O
var cookieStartIndex = document.cookie.indexOf(prefix)H![K5b+`$[r
if (cookieStartIndex == -1)
,?}GVcP C+On} K return null
/f"?X'T~Jy*QX v@%D#g)j var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
HX5W%C \4l'dC if (cookieEndIndex == -1){yv GNct[
cookieEndIndex = document.cookie.length
r3k2T`zY return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))$~duM(|q
}
'I6B+o2w6u function deleteCookie(name, path, domain) {d5X9XgW
if (getCookie(name)) {3B S8L1H4QdFAF
document.cookie = name + "=" +
` DqU3q ((path) ? "; path=" + path : "") +
-GI#u Jm,s$Y ((domain) ? "; domain=" + domain : "") +
lK.U9j4l,B8]5S(f0D'K "; expires=Thu, 01-Jan-70 00:00:01 GMT"
;w @RRPh1nyw4E d }$t-kI/g8o8]&E
}_Yj)ve
function fixDate(date) {
A&{_-?mF_(M&V var base = new Date(0)
Gvj.^|L0Dqa&tD var skew = base.getTime()z7};c\/c9pt x
if (skew > 0)
!Qtd hKw!G date.setTime(date.getTime() - skew) oC9~j_Ue1\c&k*\.U
} dEPKW],T%I
var now = new Date()"YoTBO4u
fixDate(now)C1iCjP\/s
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)
6]W ~(j;Z$E:{/J$MQ var visits = getCookie("counter")
gj~o9j h:}z if (!visits)
Q^e Ka[ Oa visits = 1
tm8|w7aD else3sPRFV|
visits = parseInt(visits) + 1
5TXJ3V9i_ ] setCookie("counter", visits, now)s,BA4y%x.y
document.write("www.rvmtv.com欢迎光临本站,您是今天第" + visits + "访问者!")
in8f`/C2H // -->[ Sq/xh+gn+F~
</SCRIPT>[/code]

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


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