找回密码
 注册
广告投放 虚位以待【阿里云】2核2G云新老同享 99元/年,续费同价做网站就用糖果主机-sugarhosts.comJtti.com-新加坡服务器,美国服务器,香港服务器
查看: 563|回复: 8

谁有1个IP一天只弹一次的弹出代码

[复制链接]
发表于 2006 年 6 月 9 日 13:03:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
谁有1个IP一天只弹一次的弹出的PHP代码.
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2006 年 6 月 9 日 13:04:12 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
忘了!!!
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 6 月 9 日 13:07:00 | 显示全部楼层
  1. <script language="javascript">
  2. function setCookie(name, value, expire) {   
  3.   window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
  4. }

  5. function getCookie(Name) {   
  6.    var search = Name + "=";
  7.    if (window.document.cookie.length > 0) { // if there are any cookies
  8.      offset = window.document.cookie.indexOf(search);
  9.          if (offset != -1) { // if cookie exists
  10.        offset += search.length;          // set index of beginning of value
  11.            end = window.document.cookie.indexOf(";", offset)          // set index of end of cookie value
  12.            if (end == -1)
  13.              end = window.document.cookie.length;
  14.            return unescape(window.document.cookie.substring(offset, end));
  15.      }
  16.    }
  17.    return null;
  18. }

  19. function register(name) {
  20.   var today = new Date();
  21.   var expires = new Date();
  22.   expires.setTime(today.getTime() + 1000*60*60*24);
  23.   setCookie("SexMovie", name, expires);
  24. }


  25. var exitURL="URL";

  26. function openWin() {

  27.   var c = getCookie("SexMovie");
  28.   if (c != null) {
  29.     return;
  30.   }
  31.   register("9free");
  32.   
  33.   var featureStr="''";
  34.   
  35.     featureStr="'top=0,left=0,width=800,height=600,toolbar=yes, menubar=no, scrollbars=no, resizable=no, location=no, status=no,center:no'";

  36.          
  37.   self.focus();
  38.   
  39.   var ExitWindow = window.open(exitURL);
  40.   
  41.     ExitWindow.focus();
  42.   
  43. }

  44. openWin();
  45. window.focus()
  46. </script>
复制代码
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2006 年 6 月 9 日 13:18:03 | 显示全部楼层
代码那么多啊。怎么加啊
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 6 月 9 日 13:19:18 | 显示全部楼层
原帖由 949596 于 2006-6-9 13:18 发表
代码那么多啊。怎么加啊

加到<body></body>中就可以啊
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2006 年 6 月 9 日 13:30:41 | 显示全部楼层
那去 看看
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 6 月 9 日 14:51:11 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
百度和谷歌都有
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 6 月 9 日 15:18:46 | 显示全部楼层
收藏了!
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 6 月 9 日 15:48:55 | 显示全部楼层
第一步:在<body>中加入:OnLoad="doPopup();"
例如:


  1. <body OnLoad="doPopup();">

复制代码


第二步:在<body></body>区间的任意位置加入:


  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!-- Begin
  3. closetime = 0; // Close window after __ number of seconds?
  4. // 0 = do not close, anything else = number of seconds

  5. function Start(URL, WIDTH, HEIGHT) {
  6. windowprops = "menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,left=200,top=50,width=" + WIDTH + ",height=" + HEIGHT;
  7. preview = window.open(URL, "preview",windowprops);
  8. if (closetime) setTimeout("preview.close();", closetime*1000);
  9. }

  10. function get_cookie(Name) {
  11.   var search = Name + "="
  12.   var returnvalue = "";
  13.   if (document.cookie.length > 0) {
  14.     offset = document.cookie.indexOf(search)
  15.     if (offset != -1) { // if cookie exists
  16.       offset += search.length
  17.       // set index of beginning of value
  18.       end = document.cookie.indexOf(";", offset);
  19.       // set index of end of cookie value
  20.       if (end == -1)
  21.          end = document.cookie.length;
  22.       returnvalue=unescape(document.cookie.substring(offset, end))
  23.       }
  24.    }
  25.   return returnvalue;
  26. }
  27. function doPopup() {

  28. url = "http://qinrui.net.ru"; // change to your popup page URL

  29. width = 600;  // width of window in pixels
  30. height = 500; // height of window in pixels
  31. delay = 150;    // time in seconds before popup opens
  32. if (get_cookie('popped')==''){
  33. timer = setTimeout("Start(url, width, height)", delay*1000);
  34. document.cookie="popped=yes"
  35. }
  36. }
  37. //  End -->
  38. </script>
复制代码

[ 本帖最后由 loiter 于 2006-6-9 15:52 编辑 ]
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2025 年 2 月 4 日 04:00 , Processed in 0.018990 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表