How to make this code do a popunder?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hardcore J
    Hardcore 4 Life™
    • Mar 2003
    • 2553

    #1

    How to make this code do a popunder?

    Is there a way to change the coding so that this will be a popunder? (I know blur needs to be added somewhere, no idea where..)

    Thanks in advance

    --------------------------------------------

    <**scrip**t>
    //Close Window Script
    //JOSH CARRICO
    //This Script works near perfect for IE
    //Netscape is a 50/50. I can get it down to the refresh and X buttons
    //I tried to manipulate almost all of the window properties to see
    //if I could detect it closing.....
    function SetIt(){
    //Need to store Page for Netscape Look Up
    ThePage=document.location.href;
    }
    function JOSHSAYSGO6(){
    if(document.all){
    var tempX = event.clientX + document.body.scrollLeft;
    var tempY = event.clientY + document.body.scrollTop;
    //If mouse is over X will return very very large negative numbers
    if(tempX<0&&tempY<0){
    ItBClosed();
    }
    }else{
    //Detects Back/Forward Buttons and Location Box Launching
    ThisPage=document.location.href;
    if(ThePage!=ThisPage){
    //Different Location detected
    }else{
    ItBClosed();
    }
    }
    }
    function ItBClosed(){
    window.open("http://www.stupidcash.com/console/pd/","new_window6","toolbar=no,scrollbars=no,menubar= no,location=no,height=478,width=740");
    }
    <**/scrip**t>
  • George Bush Jr.
    So Fucking Banned
    • Oct 2003
    • 150

    #2
    The page that you want to blur should have the blur code on it. Not the code that pops the page you want blurred. Although i suppose you could do it that way.

    anycode = window.open(
    anycode.blur();
    window.focus();

    something like that you would have to fool with it a bit

    Comment

    • Hardcore J
      Hardcore 4 Life™
      • Mar 2003
      • 2553

      #3
      Originally posted by George Bush Jr.
      The page that you want to blur should have the blur code on it. Not the code that pops the page you want blurred. Although i suppose you could do it that way.

      anycode = window.open(
      anycode.blur();
      window.focus();

      something like that you would have to fool with it a bit
      How would I put that into a ja-va scr*pt ?? I'm not very good at any coding languages other than HTML..

      Also, keep in mind that I don't want it to focus, I want it to stay behind the other windows.
      Last edited by Hardcore J; 10-06-2003, 08:19 PM.

      Comment

      • Anothers
        Confirmed User
        • Nov 2001
        • 219

        #4
        maybe this will help
        (don't know what exactly is on that console page)

        --------------------------------------------

        <**scrip**t>

        ....
        function ItBClosed(){
        window.open("http://www.stupidcash.com/console/pd/","new_window6","toolbar=no,scrollbars=no,menubar= no,location=no,height=478,width=740");
        self.focus();
        }
        <**/scrip**t> [/B][/QUOTE]

        Comment

        • sumphatpimp
          Confirmed User
          • Aug 2002
          • 5235

          #5
          hit Google with

          popunder

          tons of free scripts

          Comment

          • Hardcore J
            Hardcore 4 Life™
            • Mar 2003
            • 2553

            #6
            Originally posted by George Bush Jr.
            The page that you want to blur should have the blur code on it. Not the code that pops the page you want blurred. Although i suppose you could do it that way.

            anycode = window.open(
            anycode.blur();
            window.focus();

            something like that you would have to fool with it a bit
            Looks like this was correct, in the body on the page that I wanted to blur I put in onload="window.blur();" and it works perfectly.

            Comment

            • George Bush Jr.
              So Fucking Banned
              • Oct 2003
              • 150

              #7
              There is a way to do it from the first page , but it involves actually writing the content for the second page from the first page. And it only works on a page you want to blur thats on your own server.

              I notice lots of people ask that question , and i think its because they assume the blur is done from the page that pops .

              There are times when you may want this . if so i suggest using google and finding a script thats right for you.

              Comment

              • berg.the.red
                Confirmed User
                • Feb 2003
                • 596

                #8
                on the actual popup page code make the last code statement ( or use an onload="" ) --self.blur();
                Need a Dedicated Box with BALLS ?
                How about a Dedicated Server starting at just $49 per month.

                Comment

                Working...