Pop-under window code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RachelBlackG
    Elysium
    • Feb 2011
    • 1037

    #1

    Tech Pop-under window code

    Hi,

    anyone using their own pop-under code that actually works?
  • LuigiMdg
    Registered User
    • May 2016
    • 81

    #2
    You are searching any pop-under code..?
    Video Porno

    Comment

    • RachelBlackG
      Elysium
      • Feb 2011
      • 1037

      #3
      I'd like to have my own code that will open my other site...I found one, but it was blocked by my browser.

      Comment

      • LuigiMdg
        Registered User
        • May 2016
        • 81

        #4
        Originally posted by RachelBlackG
        I'd like to have my own code that will open my other site...I found one, but it was blocked by my browser.
        You have AdBlock enabled..? In this case you can take a persistent notice message when adblock is enabled.. Visit my website for idea.. :D
        Video Porno

        Comment

        • RachelBlackG
          Elysium
          • Feb 2011
          • 1037

          #5
          Nope, I dont use adblock..

          Comment

          • LuigiMdg
            Registered User
            • May 2016
            • 81

            #6
            Uhm.. Post the code of popunder and i take a tests
            Video Porno

            Comment

            • RachelBlackG
              Elysium
              • Feb 2011
              • 1037

              #7
              <script>

              //specify page to pop-under
              var popunder="http://yahoo.com"

              //specify popunder window features
              //set 1 to enable a particular feature, 0 to disable
              var winfeatures="width=800,height=510,scrollbars=1,res izable=1,toolbar=1,location=1,menubar=1,status=1,d irectories=0"

              //Pop-under only once per browser session? (0=no, 1=yes)
              //Specifying 0 will cause popunder to load every time page is loaded
              var once_per_session=0

              ///No editing beyond here required/////

              function get_cookie(Name) {
              var search = Name + "="
              var returnvalue = "";
              if (document.cookie.length > 0) {
              offset = document.cookie.indexOf(search)
              if (offset != -1) { // if cookie exists
              offset += search.length
              // set index of beginning of value
              end = document.cookie.indexOf(";", offset);
              // set index of end of cookie value
              if (end == -1)
              end = document.cookie.length;
              returnvalue=unescape(document.cookie.substring(off set, end))
              }
              }
              return returnvalue;
              }

              function loadornot(){
              if (get_cookie('popunder')==''){
              loadpopunder()
              document.cookie="popunder=yes"
              }
              }

              function loadpopunder(){
              win2=window.open(popunder,"",winfeatures)
              win2.blur()
              window.focus()
              }

              if (once_per_session==0)
              loadpopunder()
              else
              loadornot()

              </script>

              Comment

              • LuigiMdg
                Registered User
                • May 2016
                • 81

                #8
                Try this (replace the spaces in url):
                <script>

                //specify page to pop-under
                var popunder="yahoo .com"

                //specify popunder window features
                //set 1 to enable a particular feature, 0 to disable
                var winfeatures="width=800,height=510,scrollbars=1,res izable=1,toolbar=1,location=1,menubar=1,status=1,d irectories=0"

                //Pop-under only once per browser session? (0=no, 1=yes)
                //Specifying 0 will cause popunder to load every time page is loaded
                var once_per_session=0

                ///No editing beyond here required/////

                function get_cookie(Name) {
                var search = Name + "=";
                var returnvalue = "";
                if (document.cookie.length > 0) {
                offset = document.cookie.indexOf(search)
                if (offset != -1) { // if cookie exists
                offset += search.length
                // set index of beginning of value
                end = document.cookie.indexOf(";", offset);
                // set index of end of cookie value
                if (end == -1){end = document.cookie.length;}
                returnvalue = unescape(document.cookie.substring('off set', 'end'))
                }
                }
                return returnvalue;
                }

                function loadornot(){
                if (get_cookie('popunder')==''){
                loadpopunder()
                document.cookie="popunder=yes"
                }
                }

                function loadpopunder(){
                win2=window.open(popunder,"",winfeatures)
                win2.blur()
                window.focus()
                }

                if (once_per_session==0)
                loadpopunder()
                else
                loadornot()

                </script>
                Video Porno

                Comment

                • RachelBlackG
                  Elysium
                  • Feb 2011
                  • 1037

                  #9
                  Still doesn't seem to work thanks anyway

                  Comment

                  • LuigiMdg
                    Registered User
                    • May 2016
                    • 81

                    #10
                    Originally posted by RachelBlackG
                    Still doesn't seem to work thanks anyway
                    The error is in:
                    win2.blur()
                    Video Porno

                    Comment

                    Working...