中文(繁体)
<!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs--> <!-- 完整的 HTML 程式碼 --> <head > <script type="text/javascript"> //1) 指定要隨機選擇的URL 和pop-under: //要顯示單一URL,只需刪除除下面第一個條目之外的所有條目: var popunder =new Array() popunder[0]="http://www.downcodes.com" popunder[1]="http://www.downcodes.net" popunder[2]="http://bbs.downcodes .com" popunder[ 3]="http://www.sohu.com" //2) 指定彈出視窗功能//設定1 啟用特定功能,0 停用var winfeatures="width=800,height=510,scrollbars =1 ,ressized=1,toolbar=1,location=1,menubar=1,status=1,directories=0" //3) 控制彈出視窗的頻率: //“總是”,每次頁面載入時或/ / “x 小時”,每x 小時一次,其中x 是整數(即:12 小時) var popFrequency="12 小時" /// 無需編輯超出此處///// function get_cookie(Name) { var search =名稱+“=”var返回值=“”; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // 如果 cookie 存在 offset += search.length // 設定值開頭的索引 end = document.cookie.indexOf(";", offset); // 設定 cookie 值結尾的索引 if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } 回傳 returnvalue; } function resetcookie(){ var expireDate = new Date() expireDate.setHours(expireDate.getHours()-10) document.cookie = "tcpopunder=;path=/;expires=" + expireDate.toGMTString() } function loadordornot( ){ if (get_cookie('tcpopunder')==''){ loadpopunder() var expireDate = new Date() expireDate.setHours(expireDate.getHours()+parseInt(popFrequency)) document.cookie = "tcunderunder="+ parseInt(popFrequency)+";path=/;expires=" + expireDate.toGMTString() } } function loadpopunder(){ win2=window.open(popunder[Math.floor(Math.random()*(popunder.length) ) )],"",winfeatures) win2.blur() <br><br><br> <p><font color=red>//網址:http://www.downcodes.com</font>< / p>