脚本说明: ハンドル如下代码 領域中 复制代码 代码如下: <!-- <BR>function getCookieVal(offset) <BR>{var endstr=document.cookie.indexOf(";",offset);if(endstr ==-1) <BR>endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}function GetCookie(name) <BR>{var arg=name "=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen) <BR>{var j=i alen;if(document.cookie.substring(i,j)== arg) <BR>return getCookieVal(j);i=document.cookie.indexOf(" ",i) 1;if(i==0) <BR>break; <BR>}return null;}function SetCookie(name,value) <BR>{var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;varexpires=(2<argc)?argv[2]:null ;var path=(3<argc)?argv[3]:null;varドメイン=(4<argc)?argv[4]:null;var secure=(5<argc)?argv[5]:false;ドキュメント.cookie=name "=エスケープ(値) ((expires==null)?"":(";expires="expires.toGMTString())) ((path==null)?"":("; パス=" path)) ((domain==null)?"":(";domain="ドメイン)) ((secure==true)?"; secure":"");}function ResetCounts(name) <BR>{visits=0;SetCookie("visits",visits,expdate,"/",null,false);location.reload();} <BR>//--> <br> <!-- <BR>var expdate=new Date(); <BR>var visits;//以下の設定 COOKIES の期間は 1 年、自己随伴の設定期間.. <BR>expdate.setTime(expdate.getTime() (24*60*60*1000*365)); <BR>if(!(visits=GetCookie("visits"))) <BR>visits=0;visits ;SetCookie("visits",visits,expdate,"/",null,false);//以下情報显示<BR>document.write("你既光临本页" "<FONT COLOR=red>" visit "</FONT>" "次!");if( Visits==1)//来访1次的信息表示<br>document.write("<br>" "欢迎光临本站,觉得本站内容如何?");if(visits==2)// <BR>document.write("<br>" "再光必受幸!今次常啊!欢迎蘅本站邮件リスト。"); if(visits==3) <BR>document.write("<br>" "常客,在本站的论坛発行个帖子どうですか?");if(visits==4) <BR>document.write( "<br>" "この子!");if(visits>=5) <br>document.write("<br>" "疯狂的家伙!我真的非常喜欢你。"); <br>//--> <br>