腳本說明:把如下代碼加入區域中 複製代碼代碼如下: <!-- <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;var expires=(2<argc)?argv[2]:null ;var 路徑=(3<argc)?argv[3]:null ;var 域=(4<argc)?argv[4]:null;var secure=(5<argc)?argv[5]:false;文檔.cookie=name "= escape(value) ((expires==null )?"":("; expires="expires.toGMTString())) ((path==null)?"":("; 路徑=" path)) ((domain==null)?"":( "; domain="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 attempts;//以下設定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); //以下資訊顯示可以使用標準的HTML語法,自己隨便設定。 <BR>document.write("你已經光臨本頁" "<FONT COLOR=red>" 訪問"" "次!");if( Visits==1)//來訪1次的信息顯示<BR>document.write("<br>" "歡迎光臨本站,覺得本站內容如何?");if(visits==2)//來訪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>