Anyone want underpopup code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asdasd
    So Fucking Banned
    • Feb 2005
    • 1225

    #1

    Anyone want underpopup code?

    This goes into your main page.

    Code:
    		<script type="text/javascript">
    		(function() { var rts = document.createElement('script'); rts.type = 'text/javascript'; rts.async = true; rts.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 
    'YOURDOMAIN.COM/js.js?random=' + Math.floor(89999999*Math.random()+10000000) + '&amp;millis='+new Date().getTime(); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rts, s); })();
    </script>
    This goes into js.js or whatever you want to call it, but update in the code above

    http://pastebin.com/TgcXmCYx
    Last edited by asdasd; 03-23-2012, 09:59 AM.
  • CyberHustler
    Masterbaiter
    • Feb 2006
    • 28736

    #2
    Post the damn code homie
    “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

    Comment

    • asdasd
      So Fucking Banned
      • Feb 2005
      • 1225

      #3
      You may thank manwin for the charitable donation
      Last edited by asdasd; 03-23-2012, 10:01 AM. Reason: :)

      Comment

      • 19teenporn
        Confirmed User
        • Apr 2011
        • 3034

        #4
        Intetedasting...

        Comment

        • asdasd
          So Fucking Banned
          • Feb 2005
          • 1225

          #5
          It works

          Comment

          • borked
            Totally Borked
            • Feb 2005
            • 6284

            #6
            that's a lot of obfuscation for a popunder

            For coding work - hit me up on andy // borkedcoder // com
            (consider figuring out the email as test #1)



            All models are wrong, but some are useful. George E.P. Box. p202

            Comment

            • barcodes
              Confirmed User
              • Mar 2011
              • 2040

              #7
              Here is another one

              Code:
              <script>
              var puShown = false;
              var PopWidth = 800;
              var PopHeight = 800;
              var PopFocus = 0;
              var _Top = null;
              
              function GetWindowHeight() {
              var myHeight = 0;
              if( typeof( _Top.window.innerHeight ) == 'number' ) {
              myHeight = _Top.window.innerHeight;
              } else if( _Top.document.documentElement && _Top.document.documentElement.clientHeight ) {
              myHeight = _Top.document.documentElement.clientHeight;
              } else if( _Top.document.body && _Top.document.body.clientHeight ) {
              myHeight = _Top.document.body.clientHeight;
              }
              return myHeight;
              }
              
              function GetWindowWidth() {
              var myWidth = 0;
              if( typeof( _Top.window.innerWidth ) == 'number' ) {
              myWidth = _Top.window.innerWidth;
              } else if( _Top.document.documentElement && _Top.document.documentElement.clientWidth ) {
              myWidth = _Top.document.documentElement.clientWidth;
              } else if( _Top.document.body && _Top.document.body.clientWidth ) {
              myWidth = _Top.document.body.clientWidth;
              }
              return myWidth;
              }
              
              function GetWindowTop() {
              return (_Top.window.screenTop != undefined) ? _Top.window.screenTop : _Top.window.screenY;
              }
              
              function GetWindowLeft() {
              return (_Top.window.screenLeft != undefined) ? _Top.window.screenLeft : _Top.window.screenX;
              }
              
              function doOpen(url)
              {
              var popURL = "about:blank"
              var popID = "ad_" + Math.floor(89999999*Math.random()+10000000);
              var pxLeft = 0;
              var pxTop = 0;
              pxLeft = (GetWindowLeft() + (GetWindowWidth() / 2) - (PopWidth / 2));
              pxTop = (GetWindowTop() + (GetWindowHeight() / 2) - (PopHeight / 2));
              
              if ( puShown == true )
              {
              return true;
              }
              
              var PopWin=_Top.window.open(popURL,popID,'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + PopWidth + ',height=' + PopHeight);
              
              if (PopWin)
              {
              puShown = true;
              
              if (PopFocus == 0)
              {
              PopWin.blur();
              
              if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1)
              {
              _Top.window.blur();
              _Top.window.focus();
              }
              }
              
              PopWin.Init = function(e) {
              
              with (e) {
              
              Params = e.Params;
              Main = function(){
              
              if (typeof window.mozPaintCount != "undefined") {
              var x = window.open("about:blank");
              x.close();
              
              }
              
              var popURL = Params.PopURL;
              
              try { opener.window.focus(); }
              catch (err) { }
              
              window.location = popURL;
              }
              
              Main();
              }
              };
              
              PopWin.Params = {
              PopURL: url
              }
              
              PopWin.Init(PopWin);
              }
              
              return PopWin;
              }
              
              function setCookie(name, value, time)
              {
              var expires = new Date();
              
              expires.setTime( expires.getTime() + time );
              
              document.cookie = name + '=' + value + '; path=/;' + '; expires=' + expires.toGMTString() ;
              }
              
              function getCookie(name) {
              var cookies = document.cookie.toString().split('; ');
              var cookie, c_name, c_value;
              
              for (var n=0; n<cookies.length; n++) {
              cookie  = cookies[n].split('=');
              c_name  = cookie[0];
              c_value = cookie[1];
              
              if ( c_name == name ) {
              return c_value;
              }
              }
              
              return null;
              }
              
              function initPu()
              {
              
              _Top = self;
              
              if (top != self)
              {
              try
              {
              if (top.document.location.toString())
              _Top = top;
              }
              catch(err) { }
              }
              
              if ( document.attachEvent )
              {
              document.attachEvent( 'onclick', checkTarget );
              }
              else if ( document.addEventListener )
              {
              document.addEventListener( 'click', checkTarget, false );
              }
              }
              
              function checkTarget(e)
              {
              if ( !getCookie('popundr') ) {
              var e = e || window.event;
              var win = doOpen('http://www.url.com');
              
              setCookie('popundr', 1, 1*60*60*1000);
              }
              }
              
              initPu();
              </script>

              Comment

              • Mr Pheer
                So Fucking Banned
                • Dec 2002
                • 22083

                #8
                Oh... this is nice

                Comment

                • asdasd
                  So Fucking Banned
                  • Feb 2005
                  • 1225

                  #9
                  Originally posted by borked
                  that's a lot of obfuscation for a popunder
                  Yup manwin doesn't want to be on the receiving end of the thievery

                  Comment

                  • fris
                    Too lazy to set a custom title
                    • Aug 2002
                    • 55679

                    #10
                    here is mine

                    Code:
                    var Popup = {
                    
                        AddListener: function(target, eventName, handler) {
                            if (eventName == "beforeunload" || eventName == "unload") {
                                var originalHandler = target["on" + eventName];
                                if (originalHandler) {
                                    target["on" + eventName] = function(e) {
                                        var ret = originalHandler(e);
                                        if (typeof(ret) == "undefined" || ret == "") ret = handler(e);
                                        return ret;
                                    };
                                } else {
                                    target["on" + eventName] = handler;
                                }
                            } else if (target.addEventListener) {
                                target.addEventListener(eventName, handler, false);
                            } else if (target.attachEvent) {
                                target.attachEvent("on" + eventName, handler);
                            } else {
                                var originalHandler = target["on" + eventName];
                                if (originalHandler) {
                                    target["on" + eventName] = function(e) {
                                        originalHandler(e);
                                        handler(e);
                                    };
                                } else {
                                    target["on" + eventName] = handler;
                                }
                            }
                        },
                    
                        CreatePop: function(e) {
                    
                    
                            var popURL = "about:blank"
                            var popID = "ad_" + Math.floor(89999999 * Math.random() + 10000000);
                            var pxLeft = 0;
                            var pxTop = 0;
                    
                            // Place the window coordinates in the center of the active window
                            pxLeft = (this.GetWindowLeft() + (this.GetWindowWidth() / 2) - (this.PopWidth / 2));
                            pxTop = (this.GetWindowTop() + (this.GetWindowHeight() / 2) - (this.PopHeight / 2));
                    
                            // Create the popup
                            this.PopWin = this.Window.open(popURL, popID, 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + this.PopWidth + ',height=' + this.PopHeight);
                    
                            if (this.PopWin) {
                    
                    
                                // We don't want to pop again on the same pop load.
                                this.PopLoaded = true;
                    
                                // Increment the successfull pop count cookie
                                this.SetPoppedTotal();
                    
                                // Make the popup show either in front or behind the page
                                if (this.PopFocus == 0) {
                                    this.PopWin.blur();
                    
                                    if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1) {
                                        this.Window.blur();
                                        this.Window.focus();
                                    }
                                }
                    
                                // Load the url in the placeholder window
                                this.PopWin.Init = function(e) {
                    
                                    with(e) {
                    
                                        this.Params = e.Params; // IE9 Bugfix. "this" not functioning properly
                                        // Main code function
                                        this.Main = function() {
                    
                                            if (typeof window.mozPaintCount != "undefined") {
                                                var x = this.window.open("about:blank");
                                                x.close();
                                            }
                    
                                            // Set the parameters in the local scope
                                            var popURL = this.Params.PopURL;
                    
                                            try {
                                                opener.window.focus();
                                            } catch (err) {}
                    
                                            window.location = popURL;
                                        }
                    
                                        this.Main();
                                    }
                                };
                    
                                this.PopWin.Params = {
                                    PopURL: this.PopURL
                                }
                    
                                this.PopWin.Init(this.PopWin);
                            }
                    
                            return true;
                        },
                    
                        GetWindowHeight: function() {
                    
                            var myHeight = 0;
                    
                            if (typeof(this.Window.innerHeight) == 'number') {
                                //Non-IE
                                myHeight = this.Window.innerHeight;
                            } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientHeight) {
                                //IE 6+ in 'standards compliant mode'
                                myHeight = this.Window.document.documentElement.clientHeight;
                            } else if (this.Window.document.body && this.Window.document.body.clientHeight) {
                                //IE 4 compatible
                                myHeight = this.Window.document.body.clientHeight;
                            }
                    
                            return myHeight;
                    
                        },
                    
                        GetWindowWidth: function() {
                    
                            var myWidth = 0;
                    
                            if (typeof(this.Window.innerWidth) == 'number') {
                                //Non-IE
                                myWidth = this.Window.innerWidth;
                            } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientWidth) {
                                //IE 6+ in 'standards compliant mode'
                                myWidth = this.Window.document.documentElement.clientWidth;
                            } else if (this.Window.document.body && this.Window.document.body.clientWidth) {
                                //IE 4 compatible
                                myWidth = this.Window.document.body.clientWidth;
                            }
                    
                            return myWidth;
                        },
                    
                        GetWindowTop: function() {
                            return (this.Window.screenTop != undefined) ? this.Window.screenTop : this.Window.screenY;
                        },
                    
                        GetWindowLeft: function() {
                            return (this.Window.screenLeft != undefined) ? this.Window.screenLeft : this.Window.screenX;
                        },
                        InitPop: function(e) {
                    
                            // Allow one pop per page, prevent double execution
                            if (this.PopLoaded || arguments.callee.init) return true;
                    
                            // Double check to see if the pop cap has been reached
                            if (this.GetPoppedTotal() >= this.PopFreq) return true;
                    
                            arguments.callee.init = true;
                    
                            var status = this.CreatePop(e);
                    
                            arguments.callee.init = false;
                    
                            return status;
                        },
                        Watch: function(ctx, options) {
                    
                            for (var i in options) {
                                this[i] = options[i];
                            }
                            this.Window = ctx;
                            Popup.AddListener(this.Window.document, "click", function(e) {
                                if (!Popup.InitPop(e)) {
                                    if (e.preventDefault) {
                                        e.preventDefault()
                                    }
                                    e.returnValue = false;
                                }
                            });
                        },
                        CreateCookie: function(name, value, days) {
                    
                            if (days) {
                                var date = new Date();
                                date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                                var expires = "; expires=" + date.toGMTString();
                            } else var expires = "";
                            this.Window.document.cookie = name + "=" + value + expires + "; path=/";
                        },
                    
                    
                        ReadCookie: function(name) {
                    
                            var ca = this.Window.document.cookie.split(';');
                            var nameEQ = name + "=";
                            for (var i = 0; i < ca.length; i++) {
                                var c = ca[i];
                                while (c.charAt(0) == ' ') c = c.substring(1, c.length); //delete spaces
                                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
                            }
                            return null;
                        },
                    
                        GetPoppedTotal: function() {
                    
                            var popTotal = this.ReadCookie(this.CookieName);
                            popTotal = (popTotal != null) ? parseInt(popTotal) : 0;
                    
                            return popTotal;
                        },
                    
                        SetPoppedTotal: function() {
                    
                            var popTotal = this.ReadCookie(this.CookieName);
                    
                            if (popTotal != null) this.CreateCookie(this.CookieName, parseInt(popTotal) + 1, 1);
                            else this.CreateCookie(this.CookieName, 1, 1);
                        }
                    
                    }
                    
                    
                    var PopUpConfig = {
                        CookieName: "goog",
                        PopFocus: 0,
                        PopURL: "http://www.google.com",
                        PopFreq: 1,
                        PopWidth: 1024,
                        PopHeight: 764
                    }
                    
                    Popup.Watch(window, PopUpConfig);
                    http://pastebin.com/QzjxwVvy
                    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                    Comment

                    • lucas131
                      ¯\_(ツ)_/¯
                      • Aug 2004
                      • 11475

                      #11
                      please anyone have code under popunder over popup?

                      Comment

                      • Mr Pheer
                        So Fucking Banned
                        • Dec 2002
                        • 22083

                        #12
                        Originally posted by lucas131
                        please anyone have code under popunder over popup?
                        Fris posted popunder

                        Comment

                        • mchacal
                          Confirmed User
                          • Aug 2007
                          • 1078

                          #13
                          Originally posted by fris
                          here is mine

                          Code:
                          var Popup = {
                          
                              AddListener: function(target, eventName, handler) {
                                  if (eventName == "beforeunload" || eventName == "unload") {
                                      var originalHandler = target["on" + eventName];
                                      if (originalHandler) {
                                          target["on" + eventName] = function(e) {
                                              var ret = originalHandler(e);
                                              if (typeof(ret) == "undefined" || ret == "") ret = handler(e);
                                              return ret;
                                          };
                                      } else {
                                          target["on" + eventName] = handler;
                                      }
                                  } else if (target.addEventListener) {
                                      target.addEventListener(eventName, handler, false);
                                  } else if (target.attachEvent) {
                                      target.attachEvent("on" + eventName, handler);
                                  } else {
                                      var originalHandler = target["on" + eventName];
                                      if (originalHandler) {
                                          target["on" + eventName] = function(e) {
                                              originalHandler(e);
                                              handler(e);
                                          };
                                      } else {
                                          target["on" + eventName] = handler;
                                      }
                                  }
                              },
                          
                              CreatePop: function(e) {
                          
                          
                                  var popURL = "about:blank"
                                  var popID = "ad_" + Math.floor(89999999 * Math.random() + 10000000);
                                  var pxLeft = 0;
                                  var pxTop = 0;
                          
                                  // Place the window coordinates in the center of the active window
                                  pxLeft = (this.GetWindowLeft() + (this.GetWindowWidth() / 2) - (this.PopWidth / 2));
                                  pxTop = (this.GetWindowTop() + (this.GetWindowHeight() / 2) - (this.PopHeight / 2));
                          
                                  // Create the popup
                                  this.PopWin = this.Window.open(popURL, popID, 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + this.PopWidth + ',height=' + this.PopHeight);
                          
                                  if (this.PopWin) {
                          
                          
                                      // We don't want to pop again on the same pop load.
                                      this.PopLoaded = true;
                          
                                      // Increment the successfull pop count cookie
                                      this.SetPoppedTotal();
                          
                                      // Make the popup show either in front or behind the page
                                      if (this.PopFocus == 0) {
                                          this.PopWin.blur();
                          
                                          if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1) {
                                              this.Window.blur();
                                              this.Window.focus();
                                          }
                                      }
                          
                                      // Load the url in the placeholder window
                                      this.PopWin.Init = function(e) {
                          
                                          with(e) {
                          
                                              this.Params = e.Params; // IE9 Bugfix. "this" not functioning properly
                                              // Main code function
                                              this.Main = function() {
                          
                                                  if (typeof window.mozPaintCount != "undefined") {
                                                      var x = this.window.open("about:blank");
                                                      x.close();
                                                  }
                          
                                                  // Set the parameters in the local scope
                                                  var popURL = this.Params.PopURL;
                          
                                                  try {
                                                      opener.window.focus();
                                                  } catch (err) {}
                          
                                                  window.location = popURL;
                                              }
                          
                                              this.Main();
                                          }
                                      };
                          
                                      this.PopWin.Params = {
                                          PopURL: this.PopURL
                                      }
                          
                                      this.PopWin.Init(this.PopWin);
                                  }
                          
                                  return true;
                              },
                          
                              GetWindowHeight: function() {
                          
                                  var myHeight = 0;
                          
                                  if (typeof(this.Window.innerHeight) == 'number') {
                                      //Non-IE
                                      myHeight = this.Window.innerHeight;
                                  } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientHeight) {
                                      //IE 6+ in 'standards compliant mode'
                                      myHeight = this.Window.document.documentElement.clientHeight;
                                  } else if (this.Window.document.body && this.Window.document.body.clientHeight) {
                                      //IE 4 compatible
                                      myHeight = this.Window.document.body.clientHeight;
                                  }
                          
                                  return myHeight;
                          
                              },
                          
                              GetWindowWidth: function() {
                          
                                  var myWidth = 0;
                          
                                  if (typeof(this.Window.innerWidth) == 'number') {
                                      //Non-IE
                                      myWidth = this.Window.innerWidth;
                                  } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientWidth) {
                                      //IE 6+ in 'standards compliant mode'
                                      myWidth = this.Window.document.documentElement.clientWidth;
                                  } else if (this.Window.document.body && this.Window.document.body.clientWidth) {
                                      //IE 4 compatible
                                      myWidth = this.Window.document.body.clientWidth;
                                  }
                          
                                  return myWidth;
                              },
                          
                              GetWindowTop: function() {
                                  return (this.Window.screenTop != undefined) ? this.Window.screenTop : this.Window.screenY;
                              },
                          
                              GetWindowLeft: function() {
                                  return (this.Window.screenLeft != undefined) ? this.Window.screenLeft : this.Window.screenX;
                              },
                              InitPop: function(e) {
                          
                                  // Allow one pop per page, prevent double execution
                                  if (this.PopLoaded || arguments.callee.init) return true;
                          
                                  // Double check to see if the pop cap has been reached
                                  if (this.GetPoppedTotal() >= this.PopFreq) return true;
                          
                                  arguments.callee.init = true;
                          
                                  var status = this.CreatePop(e);
                          
                                  arguments.callee.init = false;
                          
                                  return status;
                              },
                              Watch: function(ctx, options) {
                          
                                  for (var i in options) {
                                      this[i] = options[i];
                                  }
                                  this.Window = ctx;
                                  Popup.AddListener(this.Window.document, "click", function(e) {
                                      if (!Popup.InitPop(e)) {
                                          if (e.preventDefault) {
                                              e.preventDefault()
                                          }
                                          e.returnValue = false;
                                      }
                                  });
                              },
                              CreateCookie: function(name, value, days) {
                          
                                  if (days) {
                                      var date = new Date();
                                      date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                                      var expires = "; expires=" + date.toGMTString();
                                  } else var expires = "";
                                  this.Window.document.cookie = name + "=" + value + expires + "; path=/";
                              },
                          
                          
                              ReadCookie: function(name) {
                          
                                  var ca = this.Window.document.cookie.split(';');
                                  var nameEQ = name + "=";
                                  for (var i = 0; i < ca.length; i++) {
                                      var c = ca[i];
                                      while (c.charAt(0) == ' ') c = c.substring(1, c.length); //delete spaces
                                      if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
                                  }
                                  return null;
                              },
                          
                              GetPoppedTotal: function() {
                          
                                  var popTotal = this.ReadCookie(this.CookieName);
                                  popTotal = (popTotal != null) ? parseInt(popTotal) : 0;
                          
                                  return popTotal;
                              },
                          
                              SetPoppedTotal: function() {
                          
                                  var popTotal = this.ReadCookie(this.CookieName);
                          
                                  if (popTotal != null) this.CreateCookie(this.CookieName, parseInt(popTotal) + 1, 1);
                                  else this.CreateCookie(this.CookieName, 1, 1);
                              }
                          
                          }
                          
                          
                          var PopUpConfig = {
                              CookieName: "goog",
                              PopFocus: 0,
                              PopURL: "http://www.google.com",
                              PopFreq: 1,
                              PopWidth: 1024,
                              PopHeight: 764
                          }
                          
                          Popup.Watch(window, PopUpConfig);
                          http://pastebin.com/QzjxwVvy
                          How do you change the cookie set time?

                          I tried this:
                          Code:
                          CreateCookie: function(name, value, days) {
                          
                                  if (days) {
                                      var date = new Date();
                                      date.setTime(date.getTime() + (days * 1 * 60 * 60 * 1000));
                                      var expires = "; expires=" + date.toGMTString();
                                  } else var expires = "";
                                  this.Window.document.cookie = name + "=" + value + expires + "; path=/";
                              },
                          But is not working properly
                          Future AI Creators: https://www.youtube.com/channel/UCpC...FtsolMzRuWe3-A tostadomedia at gmail dot com

                          Comment

                          • CyberHustler
                            Masterbaiter
                            • Feb 2006
                            • 28736

                            #14
                            Originally posted by barcodes
                            Here is another one

                            Code:
                            <script>
                            var puShown = false;
                            var PopWidth = 800;
                            var PopHeight = 800;
                            var PopFocus = 0;
                            var _Top = null;
                            
                            function GetWindowHeight() {
                            var myHeight = 0;
                            if( typeof( _Top.window.innerHeight ) == 'number' ) {
                            myHeight = _Top.window.innerHeight;
                            } else if( _Top.document.documentElement && _Top.document.documentElement.clientHeight ) {
                            myHeight = _Top.document.documentElement.clientHeight;
                            } else if( _Top.document.body && _Top.document.body.clientHeight ) {
                            myHeight = _Top.document.body.clientHeight;
                            }
                            return myHeight;
                            }
                            
                            function GetWindowWidth() {
                            var myWidth = 0;
                            if( typeof( _Top.window.innerWidth ) == 'number' ) {
                            myWidth = _Top.window.innerWidth;
                            } else if( _Top.document.documentElement && _Top.document.documentElement.clientWidth ) {
                            myWidth = _Top.document.documentElement.clientWidth;
                            } else if( _Top.document.body && _Top.document.body.clientWidth ) {
                            myWidth = _Top.document.body.clientWidth;
                            }
                            return myWidth;
                            }
                            
                            function GetWindowTop() {
                            return (_Top.window.screenTop != undefined) ? _Top.window.screenTop : _Top.window.screenY;
                            }
                            
                            function GetWindowLeft() {
                            return (_Top.window.screenLeft != undefined) ? _Top.window.screenLeft : _Top.window.screenX;
                            }
                            
                            function doOpen(url)
                            {
                            var popURL = "about:blank"
                            var popID = "ad_" + Math.floor(89999999*Math.random()+10000000);
                            var pxLeft = 0;
                            var pxTop = 0;
                            pxLeft = (GetWindowLeft() + (GetWindowWidth() / 2) - (PopWidth / 2));
                            pxTop = (GetWindowTop() + (GetWindowHeight() / 2) - (PopHeight / 2));
                            
                            if ( puShown == true )
                            {
                            return true;
                            }
                            
                            var PopWin=_Top.window.open(popURL,popID,'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + PopWidth + ',height=' + PopHeight);
                            
                            if (PopWin)
                            {
                            puShown = true;
                            
                            if (PopFocus == 0)
                            {
                            PopWin.blur();
                            
                            if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1)
                            {
                            _Top.window.blur();
                            _Top.window.focus();
                            }
                            }
                            
                            PopWin.Init = function(e) {
                            
                            with (e) {
                            
                            Params = e.Params;
                            Main = function(){
                            
                            if (typeof window.mozPaintCount != "undefined") {
                            var x = window.open("about:blank");
                            x.close();
                            
                            }
                            
                            var popURL = Params.PopURL;
                            
                            try { opener.window.focus(); }
                            catch (err) { }
                            
                            window.location = popURL;
                            }
                            
                            Main();
                            }
                            };
                            
                            PopWin.Params = {
                            PopURL: url
                            }
                            
                            PopWin.Init(PopWin);
                            }
                            
                            return PopWin;
                            }
                            
                            function setCookie(name, value, time)
                            {
                            var expires = new Date();
                            
                            expires.setTime( expires.getTime() + time );
                            
                            document.cookie = name + '=' + value + '; path=/;' + '; expires=' + expires.toGMTString() ;
                            }
                            
                            function getCookie(name) {
                            var cookies = document.cookie.toString().split('; ');
                            var cookie, c_name, c_value;
                            
                            for (var n=0; n<cookies.length; n++) {
                            cookie  = cookies[n].split('=');
                            c_name  = cookie[0];
                            c_value = cookie[1];
                            
                            if ( c_name == name ) {
                            return c_value;
                            }
                            }
                            
                            return null;
                            }
                            
                            function initPu()
                            {
                            
                            _Top = self;
                            
                            if (top != self)
                            {
                            try
                            {
                            if (top.document.location.toString())
                            _Top = top;
                            }
                            catch(err) { }
                            }
                            
                            if ( document.attachEvent )
                            {
                            document.attachEvent( 'onclick', checkTarget );
                            }
                            else if ( document.addEventListener )
                            {
                            document.addEventListener( 'click', checkTarget, false );
                            }
                            }
                            
                            function checkTarget(e)
                            {
                            if ( !getCookie('popundr') ) {
                            var e = e || window.event;
                            var win = doOpen('http://www.url.com');
                            
                            setCookie('popundr', 1, 1*60*60*1000);
                            }
                            }
                            
                            initPu();
                            </script>
                            I use this one a lot. Anybody know how to set this to open every browser session?
                            “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

                            Comment

                            • NaughtyRob
                              Two fresh affiliate progs
                              • Nov 2004
                              • 29602

                              #15
                              Do these pop if someone hits the back button or on exit, on load etc?
                              [email protected]
                              Skype: 17026955414
                              Vacares Web Hosting - Protect Your Ass with Included Daily Backups

                              Comment

                              • st0ned
                                Confirmed User
                                • Mar 2007
                                • 8437

                                #16
                                Originally posted by fris
                                here is mine

                                Code:
                                var Popup = {
                                
                                    AddListener: function(target, eventName, handler) {
                                        if (eventName == "beforeunload" || eventName == "unload") {
                                            var originalHandler = target["on" + eventName];
                                            if (originalHandler) {
                                                target["on" + eventName] = function(e) {
                                                    var ret = originalHandler(e);
                                                    if (typeof(ret) == "undefined" || ret == "") ret = handler(e);
                                                    return ret;
                                                };
                                            } else {
                                                target["on" + eventName] = handler;
                                            }
                                        } else if (target.addEventListener) {
                                            target.addEventListener(eventName, handler, false);
                                        } else if (target.attachEvent) {
                                            target.attachEvent("on" + eventName, handler);
                                        } else {
                                            var originalHandler = target["on" + eventName];
                                            if (originalHandler) {
                                                target["on" + eventName] = function(e) {
                                                    originalHandler(e);
                                                    handler(e);
                                                };
                                            } else {
                                                target["on" + eventName] = handler;
                                            }
                                        }
                                    },
                                
                                    CreatePop: function(e) {
                                
                                
                                        var popURL = "about:blank"
                                        var popID = "ad_" + Math.floor(89999999 * Math.random() + 10000000);
                                        var pxLeft = 0;
                                        var pxTop = 0;
                                
                                        // Place the window coordinates in the center of the active window
                                        pxLeft = (this.GetWindowLeft() + (this.GetWindowWidth() / 2) - (this.PopWidth / 2));
                                        pxTop = (this.GetWindowTop() + (this.GetWindowHeight() / 2) - (this.PopHeight / 2));
                                
                                        // Create the popup
                                        this.PopWin = this.Window.open(popURL, popID, 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + this.PopWidth + ',height=' + this.PopHeight);
                                
                                        if (this.PopWin) {
                                
                                
                                            // We don't want to pop again on the same pop load.
                                            this.PopLoaded = true;
                                
                                            // Increment the successfull pop count cookie
                                            this.SetPoppedTotal();
                                
                                            // Make the popup show either in front or behind the page
                                            if (this.PopFocus == 0) {
                                                this.PopWin.blur();
                                
                                                if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1) {
                                                    this.Window.blur();
                                                    this.Window.focus();
                                                }
                                            }
                                
                                            // Load the url in the placeholder window
                                            this.PopWin.Init = function(e) {
                                
                                                with(e) {
                                
                                                    this.Params = e.Params; // IE9 Bugfix. "this" not functioning properly
                                                    // Main code function
                                                    this.Main = function() {
                                
                                                        if (typeof window.mozPaintCount != "undefined") {
                                                            var x = this.window.open("about:blank");
                                                            x.close();
                                                        }
                                
                                                        // Set the parameters in the local scope
                                                        var popURL = this.Params.PopURL;
                                
                                                        try {
                                                            opener.window.focus();
                                                        } catch (err) {}
                                
                                                        window.location = popURL;
                                                    }
                                
                                                    this.Main();
                                                }
                                            };
                                
                                            this.PopWin.Params = {
                                                PopURL: this.PopURL
                                            }
                                
                                            this.PopWin.Init(this.PopWin);
                                        }
                                
                                        return true;
                                    },
                                
                                    GetWindowHeight: function() {
                                
                                        var myHeight = 0;
                                
                                        if (typeof(this.Window.innerHeight) == 'number') {
                                            //Non-IE
                                            myHeight = this.Window.innerHeight;
                                        } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientHeight) {
                                            //IE 6+ in 'standards compliant mode'
                                            myHeight = this.Window.document.documentElement.clientHeight;
                                        } else if (this.Window.document.body && this.Window.document.body.clientHeight) {
                                            //IE 4 compatible
                                            myHeight = this.Window.document.body.clientHeight;
                                        }
                                
                                        return myHeight;
                                
                                    },
                                
                                    GetWindowWidth: function() {
                                
                                        var myWidth = 0;
                                
                                        if (typeof(this.Window.innerWidth) == 'number') {
                                            //Non-IE
                                            myWidth = this.Window.innerWidth;
                                        } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientWidth) {
                                            //IE 6+ in 'standards compliant mode'
                                            myWidth = this.Window.document.documentElement.clientWidth;
                                        } else if (this.Window.document.body && this.Window.document.body.clientWidth) {
                                            //IE 4 compatible
                                            myWidth = this.Window.document.body.clientWidth;
                                        }
                                
                                        return myWidth;
                                    },
                                
                                    GetWindowTop: function() {
                                        return (this.Window.screenTop != undefined) ? this.Window.screenTop : this.Window.screenY;
                                    },
                                
                                    GetWindowLeft: function() {
                                        return (this.Window.screenLeft != undefined) ? this.Window.screenLeft : this.Window.screenX;
                                    },
                                    InitPop: function(e) {
                                
                                        // Allow one pop per page, prevent double execution
                                        if (this.PopLoaded || arguments.callee.init) return true;
                                
                                        // Double check to see if the pop cap has been reached
                                        if (this.GetPoppedTotal() >= this.PopFreq) return true;
                                
                                        arguments.callee.init = true;
                                
                                        var status = this.CreatePop(e);
                                
                                        arguments.callee.init = false;
                                
                                        return status;
                                    },
                                    Watch: function(ctx, options) {
                                
                                        for (var i in options) {
                                            this[i] = options[i];
                                        }
                                        this.Window = ctx;
                                        Popup.AddListener(this.Window.document, "click", function(e) {
                                            if (!Popup.InitPop(e)) {
                                                if (e.preventDefault) {
                                                    e.preventDefault()
                                                }
                                                e.returnValue = false;
                                            }
                                        });
                                    },
                                    CreateCookie: function(name, value, days) {
                                
                                        if (days) {
                                            var date = new Date();
                                            date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                                            var expires = "; expires=" + date.toGMTString();
                                        } else var expires = "";
                                        this.Window.document.cookie = name + "=" + value + expires + "; path=/";
                                    },
                                
                                
                                    ReadCookie: function(name) {
                                
                                        var ca = this.Window.document.cookie.split(';');
                                        var nameEQ = name + "=";
                                        for (var i = 0; i < ca.length; i++) {
                                            var c = ca[i];
                                            while (c.charAt(0) == ' ') c = c.substring(1, c.length); //delete spaces
                                            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
                                        }
                                        return null;
                                    },
                                
                                    GetPoppedTotal: function() {
                                
                                        var popTotal = this.ReadCookie(this.CookieName);
                                        popTotal = (popTotal != null) ? parseInt(popTotal) : 0;
                                
                                        return popTotal;
                                    },
                                
                                    SetPoppedTotal: function() {
                                
                                        var popTotal = this.ReadCookie(this.CookieName);
                                
                                        if (popTotal != null) this.CreateCookie(this.CookieName, parseInt(popTotal) + 1, 1);
                                        else this.CreateCookie(this.CookieName, 1, 1);
                                    }
                                
                                }
                                
                                
                                var PopUpConfig = {
                                    CookieName: "goog",
                                    PopFocus: 0,
                                    PopURL: "http://www.google.com",
                                    PopFreq: 1,
                                    PopWidth: 1024,
                                    PopHeight: 764
                                }
                                
                                Popup.Watch(window, PopUpConfig);
                                http://pastebin.com/QzjxwVvy
                                Thanks for sharing, fris. I still use the one I had coded years ago which rotates through the URLs in a list. Would it be easy to modify this code to do the same?
                                Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
                                We will guarantee and beat your current EPC to win your dating traffic!
                                Skype: ConversionSharks || Email: info /@/ conversionsharks.com

                                Comment

                                • fris
                                  Too lazy to set a custom title
                                  • Aug 2002
                                  • 55679

                                  #17
                                  Originally posted by st0ned
                                  Thanks for sharing, fris. I still use the one I had coded years ago which rotates through the URLs in a list. Would it be easy to modify this code to do the same?
                                  yes, could just use an array for the sites list.
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                  Comment

                                  • V_RocKs
                                    Damn Right I Kiss Ass!
                                    • Nov 2003
                                    • 32449

                                    #18
                                    just rip the randomizer from the original and add it to Fris...

                                    Or just view source on any of my blogs and rip mine!

                                    Here I make it easy for you...

                                    http://ads.vrocks.in/ads/live.js

                                    Also... Notice mine appends the referring sites domain minus periods to the end of NATS sites as a campaign...
                                    Last edited by V_RocKs; 04-04-2012, 02:36 PM.

                                    Comment

                                    • V_RocKs
                                      Damn Right I Kiss Ass!
                                      • Nov 2003
                                      • 32449

                                      #19
                                      And you can credit AWE for mine...

                                      Comment

                                      • JosephFM
                                        Confirmed User
                                        • Feb 2010
                                        • 1190

                                        #20
                                        Originally posted by CyberHustler
                                        I use this one a lot. Anybody know how to set this to open every browser session?
                                        I ain't no expert but I think this is how to do it.

                                        This opens the popunder every hour:

                                        Code:
                                        setCookie('popundr', 1, 1*60*60*1000);
                                        This opens the popunder every 24 hours:

                                        Code:
                                        setCookie('popundr', 1, 24*60*60*1000);
                                        This opens it every time:

                                        Code:
                                        setCookie('popundr', 1, 0*60*60*1000);

                                        Comment

                                        • CyberHustler
                                          Masterbaiter
                                          • Feb 2006
                                          • 28736

                                          #21
                                          I meant once every browser session and half hour... based on whichever comes first. If somebody can come up with one I'll send a donation.
                                          “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

                                          Comment

                                          • SNRProductions
                                            President SNRProductions
                                            • Jul 2006
                                            • 703

                                            #22
                                            Ooo which one is the best? I've been researching the best way to do this.

                                            Also what about inline? Are affiliates interested in an inline option as well?

                                            Popular gay blog with a 40 DA, quality US-based traffic: GayBodyBlog Tabs, links, posts, all available. Get free traffic: DudeDump and FemaleUpdate

                                            Comment

                                            • PornDude
                                              I'm still broke.
                                              • Jul 2008
                                              • 3084

                                              #23
                                              Originally posted by fris
                                              here is mine

                                              Code:
                                              var Popup = {
                                              
                                                  AddListener: function(target, eventName, handler) {
                                                      if (eventName == "beforeunload" || eventName == "unload") {
                                                          var originalHandler = target["on" + eventName];
                                                          if (originalHandler) {
                                                              target["on" + eventName] = function(e) {
                                                                  var ret = originalHandler(e);
                                                                  if (typeof(ret) == "undefined" || ret == "") ret = handler(e);
                                                                  return ret;
                                                              };
                                                          } else {
                                                              target["on" + eventName] = handler;
                                                          }
                                                      } else if (target.addEventListener) {
                                                          target.addEventListener(eventName, handler, false);
                                                      } else if (target.attachEvent) {
                                                          target.attachEvent("on" + eventName, handler);
                                                      } else {
                                                          var originalHandler = target["on" + eventName];
                                                          if (originalHandler) {
                                                              target["on" + eventName] = function(e) {
                                                                  originalHandler(e);
                                                                  handler(e);
                                                              };
                                                          } else {
                                                              target["on" + eventName] = handler;
                                                          }
                                                      }
                                                  },
                                              
                                                  CreatePop: function(e) {
                                              
                                              
                                                      var popURL = "about:blank"
                                                      var popID = "ad_" + Math.floor(89999999 * Math.random() + 10000000);
                                                      var pxLeft = 0;
                                                      var pxTop = 0;
                                              
                                                      // Place the window coordinates in the center of the active window
                                                      pxLeft = (this.GetWindowLeft() + (this.GetWindowWidth() / 2) - (this.PopWidth / 2));
                                                      pxTop = (this.GetWindowTop() + (this.GetWindowHeight() / 2) - (this.PopHeight / 2));
                                              
                                                      // Create the popup
                                                      this.PopWin = this.Window.open(popURL, popID, 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + this.PopWidth + ',height=' + this.PopHeight);
                                              
                                                      if (this.PopWin) {
                                              
                                              
                                                          // We don't want to pop again on the same pop load.
                                                          this.PopLoaded = true;
                                              
                                                          // Increment the successfull pop count cookie
                                                          this.SetPoppedTotal();
                                              
                                                          // Make the popup show either in front or behind the page
                                                          if (this.PopFocus == 0) {
                                                              this.PopWin.blur();
                                              
                                                              if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1) {
                                                                  this.Window.blur();
                                                                  this.Window.focus();
                                                              }
                                                          }
                                              
                                                          // Load the url in the placeholder window
                                                          this.PopWin.Init = function(e) {
                                              
                                                              with(e) {
                                              
                                                                  this.Params = e.Params; // IE9 Bugfix. "this" not functioning properly
                                                                  // Main code function
                                                                  this.Main = function() {
                                              
                                                                      if (typeof window.mozPaintCount != "undefined") {
                                                                          var x = this.window.open("about:blank");
                                                                          x.close();
                                                                      }
                                              
                                                                      // Set the parameters in the local scope
                                                                      var popURL = this.Params.PopURL;
                                              
                                                                      try {
                                                                          opener.window.focus();
                                                                      } catch (err) {}
                                              
                                                                      window.location = popURL;
                                                                  }
                                              
                                                                  this.Main();
                                                              }
                                                          };
                                              
                                                          this.PopWin.Params = {
                                                              PopURL: this.PopURL
                                                          }
                                              
                                                          this.PopWin.Init(this.PopWin);
                                                      }
                                              
                                                      return true;
                                                  },
                                              
                                                  GetWindowHeight: function() {
                                              
                                                      var myHeight = 0;
                                              
                                                      if (typeof(this.Window.innerHeight) == 'number') {
                                                          //Non-IE
                                                          myHeight = this.Window.innerHeight;
                                                      } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientHeight) {
                                                          //IE 6+ in 'standards compliant mode'
                                                          myHeight = this.Window.document.documentElement.clientHeight;
                                                      } else if (this.Window.document.body && this.Window.document.body.clientHeight) {
                                                          //IE 4 compatible
                                                          myHeight = this.Window.document.body.clientHeight;
                                                      }
                                              
                                                      return myHeight;
                                              
                                                  },
                                              
                                                  GetWindowWidth: function() {
                                              
                                                      var myWidth = 0;
                                              
                                                      if (typeof(this.Window.innerWidth) == 'number') {
                                                          //Non-IE
                                                          myWidth = this.Window.innerWidth;
                                                      } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientWidth) {
                                                          //IE 6+ in 'standards compliant mode'
                                                          myWidth = this.Window.document.documentElement.clientWidth;
                                                      } else if (this.Window.document.body && this.Window.document.body.clientWidth) {
                                                          //IE 4 compatible
                                                          myWidth = this.Window.document.body.clientWidth;
                                                      }
                                              
                                                      return myWidth;
                                                  },
                                              
                                                  GetWindowTop: function() {
                                                      return (this.Window.screenTop != undefined) ? this.Window.screenTop : this.Window.screenY;
                                                  },
                                              
                                                  GetWindowLeft: function() {
                                                      return (this.Window.screenLeft != undefined) ? this.Window.screenLeft : this.Window.screenX;
                                                  },
                                                  InitPop: function(e) {
                                              
                                                      // Allow one pop per page, prevent double execution
                                                      if (this.PopLoaded || arguments.callee.init) return true;
                                              
                                                      // Double check to see if the pop cap has been reached
                                                      if (this.GetPoppedTotal() >= this.PopFreq) return true;
                                              
                                                      arguments.callee.init = true;
                                              
                                                      var status = this.CreatePop(e);
                                              
                                                      arguments.callee.init = false;
                                              
                                                      return status;
                                                  },
                                                  Watch: function(ctx, options) {
                                              
                                                      for (var i in options) {
                                                          this[i] = options[i];
                                                      }
                                                      this.Window = ctx;
                                                      Popup.AddListener(this.Window.document, "click", function(e) {
                                                          if (!Popup.InitPop(e)) {
                                                              if (e.preventDefault) {
                                                                  e.preventDefault()
                                                              }
                                                              e.returnValue = false;
                                                          }
                                                      });
                                                  },
                                                  CreateCookie: function(name, value, days) {
                                              
                                                      if (days) {
                                                          var date = new Date();
                                                          date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                                                          var expires = "; expires=" + date.toGMTString();
                                                      } else var expires = "";
                                                      this.Window.document.cookie = name + "=" + value + expires + "; path=/";
                                                  },
                                              
                                              
                                                  ReadCookie: function(name) {
                                              
                                                      var ca = this.Window.document.cookie.split(';');
                                                      var nameEQ = name + "=";
                                                      for (var i = 0; i < ca.length; i++) {
                                                          var c = ca[i];
                                                          while (c.charAt(0) == ' ') c = c.substring(1, c.length); //delete spaces
                                                          if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
                                                      }
                                                      return null;
                                                  },
                                              
                                                  GetPoppedTotal: function() {
                                              
                                                      var popTotal = this.ReadCookie(this.CookieName);
                                                      popTotal = (popTotal != null) ? parseInt(popTotal) : 0;
                                              
                                                      return popTotal;
                                                  },
                                              
                                                  SetPoppedTotal: function() {
                                              
                                                      var popTotal = this.ReadCookie(this.CookieName);
                                              
                                                      if (popTotal != null) this.CreateCookie(this.CookieName, parseInt(popTotal) + 1, 1);
                                                      else this.CreateCookie(this.CookieName, 1, 1);
                                                  }
                                              
                                              }
                                              
                                              
                                              var PopUpConfig = {
                                                  CookieName: "goog",
                                                  PopFocus: 0,
                                                  PopURL: "http://www.google.com",
                                                  PopFreq: 1,
                                                  PopWidth: 1024,
                                                  PopHeight: 764
                                              }
                                              
                                              Popup.Watch(window, PopUpConfig);
                                              http://pastebin.com/QzjxwVvy
                                              The popunder looks ok in IE or FF but I couldn't get it work in Chrome.

                                              Any solution?
                                              PornDude.com 🔥

                                              PornWebmasters.com 🤑

                                              MyGaySites.com 🤭

                                              PornDudeCasting.com 🚀

                                              Comment

                                              • CurrentlySober
                                                Too lazy to wipe my ass
                                                • Aug 2002
                                                • 38945

                                                #24
                                                i like poopinderz


                                                👁️ 👍️ 💩

                                                Comment

                                                Working...