中文(繁体)
<!-- 將下列程式碼加到BODY中--> <body> <script> var cookieString = new String(document.cookie) var cookieHeader = 'happy_pop' //更換happy_pop為任意名稱var beginPosition = cookieString.indexOf( cookieHeader) if (beginPosition <0){ window.open('http://www.downcodes.com/index.html','','top=0,left=0,width=787,height=480,toolbar =yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes'); var Then = new Date() Then .setTime(Then.getTime() + 12*60*60*1000 ) //同一ip設定過期時間,即多長間隔跳出一次document.cookie = 'happy_pop=yes;expires='+ Then.toGMTString() //更換happy_pop和第4行一樣的名稱}//more javascript from http ://www.downcodes.com </script> </body>