Load....
您的位置:下载首页 » 技术文章
1个IP一天只弹一次的广告代码
2010/9/1 18:16:32 | 来源:众智源码网 | 浏览:次阅读

function setCookie(name, value, expire) {   
  window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
}

function getCookie(Name) {   
   var search = Name + "=";
   if (window.document.cookie.length > 0) { // if there are any cookies
     offset = window.document.cookie.indexOf(search);
  if (offset != -1) { // if cookie exists
       offset += search.length;          // set index of beginning of value
    end = window.document.cookie.indexOf(";", offset)          // set index of end of cookie value
    if (end == -1)
      end = window.document.cookie.length;
    return unescape(window.document.cookie.substring(offset, end));
     }
   }
   return null;
}

function register(name) {
  var today = new Date();
  var expires = new Date();
  expires.setTime(today.getTime() + 1000*60*60*24);
  setCookie("ItDoor", name, expires);
}


  var exitURL=http://homepage.yesky.com/;

function openWin() {

  var c = getCookie("ItDoor");
  if (c != null) {
    return;
  }欢迎光临学网,收藏本篇文章 [1] [2]


$False$


  register("xiaolin");
  
  var featureStr="''";
  
    featureStr="'top=0,left=0,width=800,height=600,toolbar=yes, menubar=no, scrollbars=no, resizable=no, location=no, status=no,center:no'";

   
  self.focus();
  
  var ExitWindow = window.open(exitURL,'', featureStr);
  
    ExitWindow.focus();
  
}

openWin();
window.focus()




 上一篇文章:.NET页面传递值的几种方式       下一篇文章:同一IP网站不要互相链接
   (合作)  [email protected]
© CopyRight 2009-2010, PK63.NET, Inc.All Rights Reserved.
网站备案号: 版权声明 
如何获得资源分  下载帮助  联系我们