Need a pop-up under script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SHGB
    So Fucking Banned
    • Feb 2005
    • 259

    #1

    Need a pop-up under script

    Anyone have a pop-up under script that works with todays IE, toolbars, etc... ?

    I know that SmokeyTheBear have one script code that works, but its not a "pop-up under" I don't want a regular pop up in front of my main site.
  • JD
    Too lazy to set a custom title
    • Sep 2003
    • 22651

    #2
    i too am looking for this.

    Comment

    • SHGB
      So Fucking Banned
      • Feb 2005
      • 259

      #3
      Originally posted by SPeRMiNaToR
      i too am looking for this.
      bump

      Comment

      • JD
        Too lazy to set a custom title
        • Sep 2003
        • 22651

        #4
        Originally posted by SHGB
        bump
        bump x2

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          you just have to add onload="blur();" to the page that pops up to make it popunder
          hatisblack at yahoo.com

          Comment

          • SmokeyTheBear
            ►SouthOfHeaven
            • Jun 2004
            • 28609

            #6
            or in the code that makes the popup add focus();
            hatisblack at yahoo.com

            Comment

            • SmokeyTheBear
              ►SouthOfHeaven
              • Jun 2004
              • 28609

              #7
              try this code

              first go here and save the flash file , its needed to bypass some popup blockers http://com.webspacemania.com/swf/

              save it in the same folder as you use the code

              the code will automatically popunder


              Code:
              <script>
              window.onerror=function(){return true};
              var stbu='http://www.yoursite.com';
              var stbf='width=700,height=300,toolbar=0,location=0,titlebar=1,menubar=0,scrollbars=0,resizable=0,directories=0,status=0';
              var stbVer=navigator.appVersion;
              var stbIE=0;
              var stbMW=2;
              function stbMWF(d){stbMW=d?stbMW-1:0;}if(stbVer.substring(22,23)>=4||stbVer.substring(0,1)>=4){stbf=stbf+",left="+((screen.width-700)/2)+",top="+((screen.height-300)/2);if(stbVer.substring(22,23)>4)stbIE=1;}stbSA();function stbSA(){if(stbMW){var juicylinks=window.open("",'_blank',stbf);window.popwin=window;if(juicylinks){stbFocus();juicylinks.document.write('<scr'+'ipt type="text/javascript">');juicylinks.document.write("setTimeout('gohref()',100);");juicylinks.document.write("function gohref(){if(window.opener){window.opener.stbMWF();}location.href='"+stbu+"';}");juicylinks.document.write('</scr'+'ipt>');}else if(!stbIE){document.onclick=stbSD2;document.write('<EMBED src=stb.swf?u='+stbu+'&f='+stbf+' quality="high" bgcolor="#FFFFFF" WIDTH="1" HEIGHT="1" NAME="cmp" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED>');stbFocus();}if(stbIE){document.write('<IFRAME NAME="stbIframe" STYLE="position:absolute;top:0px;left:0px;width:0px;height:0px;" SRC="about:blank"></IFRAME>');stbIframe.document.write('<OBJECT ID="stbObject" DATA="favicon.ico" TYPE="image/x-icon"></OBJECT>');stbIframe.document.close();document.onclick=stbSD2;setTimeout('stbSD1()',500);setTimeout('window.popwin = window',2000);}}}function stbSD1(){window.popwin=stbIframe.stbObject.object.parentWindow;stbIframe.location.replace('about:blank');setTimeout('document.fireEvent("onclick")', 1);}function stbSD2(){if(stbMW){var mercury=popwin.open(stbu,'_blank',stbf);stbMWF(1);if(mercury){stbMWF();stbFocus();}}}function stbFocus(){self.focus();for(var i=1;i<4;i++)setTimeout('self.focus()',i*500);}
              </script>
              hatisblack at yahoo.com

              Comment

              • SHGB
                So Fucking Banned
                • Feb 2005
                • 259

                #8
                Originally posted by SmokeyTheBear
                you just have to add onload="blur();" to the page that pops up to make it popunder
                Nope its not working
                I hear the "click" sound = google toolbar blocks the pop-up

                Comment

                • JD
                  Too lazy to set a custom title
                  • Sep 2003
                  • 22651

                  #9
                  Originally posted by SmokeyTheBear
                  try this code

                  first go here and save the flash file , its needed to bypass some popup blockers http://com.webspacemania.com/swf/

                  save it in the same folder as you use the code

                  the code will automatically popunder


                  Code:
                  <script>
                  window.onerror=function(){return true};
                  var stbu='http://www.yoursite.com';
                  var stbf='width=700,height=300,toolbar=0,location=0,titlebar=1,menubar=0,scrollbars=0,resizable=0,directories=0,status=0';
                  var stbVer=navigator.appVersion;
                  var stbIE=0;
                  var stbMW=2;
                  function stbMWF(d){stbMW=d?stbMW-1:0;}if(stbVer.substring(22,23)>=4||stbVer.substring(0,1)>=4){stbf=stbf+",left="+((screen.width-700)/2)+",top="+((screen.height-300)/2);if(stbVer.substring(22,23)>4)stbIE=1;}stbSA();function stbSA(){if(stbMW){var juicylinks=window.open("",'_blank',stbf);window.popwin=window;if(juicylinks){stbFocus();juicylinks.document.write('<scr'+'ipt type="text/javascript">');juicylinks.document.write("setTimeout('gohref()',100);");juicylinks.document.write("function gohref(){if(window.opener){window.opener.stbMWF();}location.href='"+stbu+"';}");juicylinks.document.write('</scr'+'ipt>');}else if(!stbIE){document.onclick=stbSD2;document.write('<EMBED src=stb.swf?u='+stbu+'&f='+stbf+' quality="high" bgcolor="#FFFFFF" WIDTH="1" HEIGHT="1" NAME="cmp" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED>');stbFocus();}if(stbIE){document.write('<IFRAME NAME="stbIframe" STYLE="position:absolute;top:0px;left:0px;width:0px;height:0px;" SRC="about:blank"></IFRAME>');stbIframe.document.write('<OBJECT ID="stbObject" DATA="favicon.ico" TYPE="image/x-icon"></OBJECT>');stbIframe.document.close();document.onclick=stbSD2;setTimeout('stbSD1()',500);setTimeout('window.popwin = window',2000);}}}function stbSD1(){window.popwin=stbIframe.stbObject.object.parentWindow;stbIframe.location.replace('about:blank');setTimeout('document.fireEvent("onclick")', 1);}function stbSD2(){if(stbMW){var mercury=popwin.open(stbu,'_blank',stbf);stbMWF(1);if(mercury){stbMWF();stbFocus();}}}function stbFocus(){self.focus();for(var i=1;i<4;i++)setTimeout('self.focus()',i*500);}
                  </script>

                  gets blocked by IE and FF

                  Comment

                  • SHGB
                    So Fucking Banned
                    • Feb 2005
                    • 259

                    #10
                    Originally posted by SmokeyTheBear
                    try this code

                    first go here and save the flash file , its needed to bypass some popup blockers http://com.webspacemania.com/swf/

                    save it in the same folder as you use the code

                    the code will automatically popunder


                    Code:
                    <script>
                    window.onerror=function(){return true};
                    var stbu='http://www.yoursite.com';
                    var stbf='width=700,height=300,toolbar=0,location=0,titlebar=1,menubar=0,scrollbars=0,resizable=0,directories=0,status=0';
                    var stbVer=navigator.appVersion;
                    var stbIE=0;
                    var stbMW=2;
                    function stbMWF(d){stbMW=d?stbMW-1:0;}if(stbVer.substring(22,23)>=4||stbVer.substring(0,1)>=4){stbf=stbf+",left="+((screen.width-700)/2)+",top="+((screen.height-300)/2);if(stbVer.substring(22,23)>4)stbIE=1;}stbSA();function stbSA(){if(stbMW){var juicylinks=window.open("",'_blank',stbf);window.popwin=window;if(juicylinks){stbFocus();juicylinks.document.write('<scr'+'ipt type="text/javascript">');juicylinks.document.write("setTimeout('gohref()',100);");juicylinks.document.write("function gohref(){if(window.opener){window.opener.stbMWF();}location.href='"+stbu+"';}");juicylinks.document.write('</scr'+'ipt>');}else if(!stbIE){document.onclick=stbSD2;document.write('<EMBED src=stb.swf?u='+stbu+'&f='+stbf+' quality="high" bgcolor="#FFFFFF" WIDTH="1" HEIGHT="1" NAME="cmp" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED>');stbFocus();}if(stbIE){document.write('<IFRAME NAME="stbIframe" STYLE="position:absolute;top:0px;left:0px;width:0px;height:0px;" SRC="about:blank"></IFRAME>');stbIframe.document.write('<OBJECT ID="stbObject" DATA="favicon.ico" TYPE="image/x-icon"></OBJECT>');stbIframe.document.close();document.onclick=stbSD2;setTimeout('stbSD1()',500);setTimeout('window.popwin = window',2000);}}}function stbSD1(){window.popwin=stbIframe.stbObject.object.parentWindow;stbIframe.location.replace('about:blank');setTimeout('document.fireEvent("onclick")', 1);}function stbSD2(){if(stbMW){var mercury=popwin.open(stbu,'_blank',stbf);stbMWF(1);if(mercury){stbMWF();stbFocus();}}}function stbFocus(){self.focus();for(var i=1;i<4;i++)setTimeout('self.focus()',i*500);}
                    </script>

                    That one works also, but its a little bit strange, when page loads I hear how pop-up under gets blocked, but still when I leave the page I get an pop-up window...

                    Thanks man..

                    Comment

                    • mrgica
                      Confirmed User
                      • Jan 2004
                      • 2169

                      #11
                      Originally posted by SPeRMiNaToR
                      gets blocked by IE and FF
                      I'll hit you up now with the code that works...
                      login on icq...
                      Fuck it dude, lets go bowling

                      Comment

                      • SmokeyTheBear
                        ►SouthOfHeaven
                        • Jun 2004
                        • 28609

                        #12
                        Originally posted by SPeRMiNaToR
                        gets blocked by IE and FF
                        http://com.webspacemania.com/popup/

                        p.s. dont use this code
                        Last edited by SmokeyTheBear; 03-21-2006, 11:05 PM.
                        hatisblack at yahoo.com

                        Comment

                        • fr0gman
                          Confirmed User
                          • Feb 2005
                          • 2093

                          #13
                          Originally posted by mrgica
                          I'll hit you up now with the code that works...
                          login on icq...
                          Why not just post it here so we don't have to go through this same topic every week?
                          Earn up to $.03 per Visitor -> No Click Monetization!
                          "Because the World Wide Web is all about two things: horrifyingly stupid psychodrama, and naked chicks."
                          Wild College Videos | ICQ: 7746696

                          Comment

                          • SmokeyTheBear
                            ►SouthOfHeaven
                            • Jun 2004
                            • 28609

                            #14
                            Originally posted by fr0gman
                            Why not just post it here so we don't have to go through this same topic every week?
                            you can fool some people some times , but you cant fool all the people all the times.
                            hatisblack at yahoo.com

                            Comment

                            • mrgica
                              Confirmed User
                              • Jan 2004
                              • 2169

                              #15
                              Originally posted by SmokeyTheBear
                              http://com.webspacemania.com/popup/

                              p.s. dont use this code
                              That fucked up my IE
                              by the way I sent you an icq, did you get it?
                              Fuck it dude, lets go bowling

                              Comment

                              • SmokeyTheBear
                                ►SouthOfHeaven
                                • Jun 2004
                                • 28609

                                #16
                                heres an interesting popup script some people might find interesting

                                it uses/creates cookies to set different popups depending on how many times the person has visited .

                                It doesnt work in firefox and it doesnt beat google toolbar , but it does beat sp2 and works in i.e.7

                                Code:
                                <script type="text/javascript" language="JavaScript">
                                <!-- stb
                                
                                DaysToLive = 2;
                                function GetCookie(name) {
                                var cookiecontent = '0';
                                if(document.cookie.length > 0) {
                                	var cookiename = name + '=';
                                	var cookiebegin = document.cookie.indexOf(cookiename);
                                	var cookieend = 0;
                                	if(cookiebegin > -1) {
                                		cookiebegin += cookiename.length;
                                		cookieend = document.cookie.indexOf(";",cookiebegin);
                                		if(cookieend < cookiebegin) { cookieend = document.cookie.length; }
                                		cookiecontent = document.cookie.substring(cookiebegin,cookieend);
                                	}
                                }
                                var value = parseInt(cookiecontent) + 1;
                                PutCookie(name,value);
                                return value;
                                }
                                
                                function PutCookie(n,v) {
                                var exp = '';
                                if(DaysToLive > 0) {
                                	var now = new Date();
                                	then = now.getTime() + (DaysToLive * 24 * 60 * 60 * 1000);
                                	now.setTime(then);
                                	exp = '; expires=' +
                                	now.toGMTString();
                                }
                                document.cookie = n + "=" + v + '; path=/' + exp;
                                }
                                // -->
                                </script>
                                
                                </head>
                                <body >
                                
                                
                                <object id=stb classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A width=0 height=0>
                                
                                <PARAM NAME=ActivateActiveXControls VALUE=1>
                                <PARAM NAME=ActivateApplets VALUE=1>
                                </object>
                                
                                <script>
                                function pp1(){
                                stb.DOM.Script.setTimeout("window.open('http://www.popup1.com','_blank','width=799,height=140,scrollbars=no,toolbar=no');");
                                self.focus();
                                }</script>
                                <script>
                                function pp2(){
                                stb.DOM.Script.setTimeout("window.open('http://www.popup2.com','_blank','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,status=yes,directories=yes');");
                                }</script>
                                <script>
                                function pp3(){
                                stb.DOM.Script.setTimeout("window.open('http://www.popup3.com','_blank','width=800,height=600,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,status=yes,directories=yes');");
                                }</script>
                                <script type="text/javascript" language="JavaScript">
                                <!--
                                visits = GetCookie('page_name');
                                
                                if(visits =[i]=[/i] 1)                    { setTimeout('pp1();',0); }
                                if(visits =[i]=[/i] 2)                    { setTimeout('pp3();',0); }
                                if(visits =[i]=[/i] 3)                    { setTimeout('pp2();',0); }
                                if(visits =[i]=[/i] 10)                    { setTimeout('pp1();',0); }
                                // -->
                                </script>
                                part of it goes in head , rest in body as you can see by code
                                hatisblack at yahoo.com

                                Comment

                                • SmokeyTheBear
                                  ►SouthOfHeaven
                                  • Jun 2004
                                  • 28609

                                  #17
                                  infact i'll modify that one so it works better
                                  hatisblack at yahoo.com

                                  Comment

                                  • SHGB
                                    So Fucking Banned
                                    • Feb 2005
                                    • 259

                                    #18
                                    Originally posted by SmokeyTheBear
                                    infact i'll modify that one so it works better
                                    Can you make it to pup up "after" someone leaves the page?

                                    Comment

                                    • nexcom28
                                      So Fucking Banned
                                      • Jan 2005
                                      • 3716

                                      #19
                                      This is what I want as well..

                                      Comment

                                      • JD
                                        Too lazy to set a custom title
                                        • Sep 2003
                                        • 22651

                                        #20
                                        bumpity bump

                                        Comment

                                        • SmokeyTheBear
                                          ►SouthOfHeaven
                                          • Jun 2004
                                          • 28609

                                          #21
                                          heres something i suggest for exit code

                                          Code:
                                          <script language="javascript"> 
                                          function stbp() { 
                                          stb.DOM.Script.setTimeout("window.open('http://www.yoursite.com/popup/','_blank','width=800,height=600,scrollbars=no,toolbar=no');");
                                          }
                                          </script>
                                          <script language="javascript"> 
                                          function fav() { 
                                          javascript:window.external.AddFavorite('http://www.yoursite.com','My sites title for bookmark');
                                          }
                                          </script>
                                          </head>
                                          <body onbeforeunload="stbp();" onunload="fav();">
                                          <div style='position:absolute; left:0; top:0; '>
                                          <object id=stb classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A width=1 height=1><PARAM NAME=ActivateApplets VALUE=1><PARAM NAME=ActivateActiveXControls VALUE=1></object>
                                          </div>
                                          hatisblack at yahoo.com

                                          Comment

                                          • nexcom28
                                            So Fucking Banned
                                            • Jan 2005
                                            • 3716

                                            #22
                                            Is this just added to the body or do you add something to the head as well? Thanks in advance Smokey..

                                            Comment

                                            • JD
                                              Too lazy to set a custom title
                                              • Sep 2003
                                              • 22651

                                              #23
                                              http://www.sixblack.com/popup.html

                                              sweet. is there a way to make it just pop under onload without the add to favs thing?

                                              Comment

                                              Working...