한국어
<!-- 把下列代码加到<body>区域中 --> <script 언어=javascript> function getCookie(name) { var cookiefound=false var start=0 var end=0 var cookiestring=document.cookie; var i=0; while (i<=cookiestring.length) { start=i end=start+name.length if (cookiestring.substring(start,end)==name) {cookiefound=true; 부서지다; } 나는++; } if (cookiefound==true) { 시작=끝+1; end=cookiestring.indexOf(";",start); if (end<start) { end=cookiestring.length;} return cookiestring.substring(start,end); } 반품 ""; } function newcookie(id,value,guoqi) { varexpires=new Date()expires.setTime(expires.getTime()+24*60*60*30*1000) //30为天数,可改为任意数字 var expiryDate=expires.toGMTString(); document.cookie=id+"="+value+";expires="+expiryDate } if (getCookie("Alerted")=="") { Alert("弹了") newcookie("Alerted","yes") } 그렇지 않으면 { } </script>