function gv_cnzz(of) { var es = document.cookie.indexOf(";",of);
if(es==-1) es=document.cookie.length;
return unescape(document.cookie.substring(of,es)); }
function gc_cnzz(n){ var arg=n+"="; var alen=arg.length;
var clen=document.cookie.length; var i=0; while(i500*86400)&&(lt>0)) rt++;
data=data+'&repeatip='+cnzz_a+'&rtime='+rt+'&cnzz_eid='+escape(eid)+'&showp='+escape(screen.width+'x'+screen.height);
document.write('中国站长图标');
document.write('');
var et=(86400-ed.getHours()*3600-ed.getMinutes()*60-ed.getSeconds()); ed.setTime(now+1000*(et-ed.getTimezoneOffset()*60)); document.cookie="cnzz_a149899="+cnzz_a+";
expires="+ed.toGMTString()+ "; path=/"; ed.setTime(now+1000*86400*182); document.cookie="rtime="+rt+";expires="+ed.toGMTString()+ ";path=/"; document.cookie="ltime="+now+";expires=" + ed.toGMTString()+ ";path=/"; document.cookie="cnzz_eid="+escape(eid)+ ";expires="+ed.toGMTString()+";path=/";
各位站长,开发者,谁能帮我注释这段计数代码的意思么?
if(es==-1) es=document.cookie.length;
return unescape(document.cookie.substring(of,es)); }
function gc_cnzz(n){ var arg=n+"="; var alen=arg.length;
var clen=document.cookie.length; var i=0; while(i500*86400)&&(lt>0)) rt++;
data=data+'&repeatip='+cnzz_a+'&rtime='+rt+'&cnzz_eid='+escape(eid)+'&showp='+escape(screen.width+'x'+screen.height);
document.write('中国站长图标');
document.write('');
var et=(86400-ed.getHours()*3600-ed.getMinutes()*60-ed.getSeconds()); ed.setTime(now+1000*(et-ed.getTimezoneOffset()*60)); document.cookie="cnzz_a149899="+cnzz_a+";
expires="+ed.toGMTString()+ "; path=/"; ed.setTime(now+1000*86400*182); document.cookie="rtime="+rt+";expires="+ed.toGMTString()+ ";path=/"; document.cookie="ltime="+now+";expires=" + ed.toGMTString()+ ";path=/"; document.cookie="cnzz_eid="+escape(eid)+ ";expires="+ed.toGMTString()+";path=/";
各位站长,开发者,谁能帮我注释这段计数代码的意思么?
楼主【lockywing】截止到2008-07-15 00:53:00的历史汇总数据(不包括此帖):
发帖的总数量:8 发帖的总分数:70 每贴平均分数:8
回帖的总数量:6 得分贴总数量:0 回帖的得分率:0%
结贴的总数量:7 结贴的总分数:20
无满意结贴数:6 无满意结贴分:120
未结的帖子数:1 未结的总分数:50
结贴的百分比:87.50 % 结分的百分比:28.57 %
无满意结贴率:85.71 % 无满意结分率:600.00%
楼主加油
if(es==-1) es=document.cookie.length;
return unescape(document.cookie.substring(of,es)); }
这个就不说了,从cookie中去匹配of,unescape只是个转码函数。function gc_cnzz(n){ var arg=n+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
//i500*86400 这是啥??? lt>0,rt++.......好多全局变量没写进来?
while(i500*86400)&&(lt>0))
rt++;
//data 也是个全局变量? 下面的语句是拼装出一个url,(screen.width+'x'+screen.height); 屏幕高度×屏幕宽度这样一个字符而已
data=data+'&repeatip='+cnzz_a+'&rtime='+rt+'&cnzz_eid='+escape(eid)+'&showp='+escape(screen.width+'x'+screen.height);
document.write('中国站长图标');
document.write('');
//ed??什么对象?日期对象? 下面很多函数都是随便搜搜都可以知道返回什么结果的...........
var et=(86400-ed.getHours()*3600-ed.getMinutes()*60-ed.getSeconds());
ed.setTime(now+1000*(et-ed.getTimezoneOffset()*60));
document.cookie="cnzz_a149899="+cnzz_a+";
expires="+ed.toGMTString()+ "; path=/"; ed.setTime(now+1000*86400*182); document.cookie="rtime="+rt+";expires="+ed.toGMTString()+ ";path=/"; document.cookie="ltime="+now+";expires=" + ed.toGMTString()+ ";path=/"; document.cookie="cnzz_eid="+escape(eid)+ ";expires="+ed.toGMTString()+";path=/";
一个纯cookie的操作而已,http://www.he.edu.cn/learn/wlxy/javascript/day2_11.html去看看吧,时间函数都没什么好研究的,自己查...
还有下次格式理一理吧