日本語
<!-- 把下列代码<body> 領域中 --> <script language=javascript> function getCookie(name) { var cookiefound=false var start=0 var end=0 var cookiestring=document.cookie;変数i=0; while (i<=cookiestring.length) { start=i end=start+name.length if (cookiestring.substring(start,end)==name) {cookiefound=true;壊す; } i++; if (cookiefound==true) { start=end+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") } else { } </script>