How do I make this a Pop-Under?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheRedZone
    Confirmed User
    • Jan 2003
    • 147

    #1

    How do I make this a Pop-Under?

    can anyone tell me what to change in this code to make it a pop-under?


    if (window != top) top.location.href=location.href; //
    {open("http://www.mypopunderurl.com","_blank","menubar=no,scroll bars=yes,resizable=yes"); }//


    Thanks
    My IQ is higher than my postcount, but it hasn't really helped me that much....
  • Azathoth
    Confirmed User
    • Nov 2002
    • 217

    #2
    Originally posted by TheRedZone
    can anyone tell me what to change in this code to make it a pop-under?


    if (window != top) top.location.href=location.href; //
    {open("http://www.mypopunderurl.com","_blank","menubar=no,scroll bars=yes,resizable=yes"); }//


    Thanks
    A basic popunder would look like this:
    Code:
    win2 = window. o pen("http://url.to.popunder/page.html"_blank");
    win2.blur()
    window.focus()
    Minus the spaces in the open statement.

    Comment

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

      #3
      So for you that don't understand still,

      Make the window with line 1
      Blur or lose focus the window in line 2 that was made in line 1
      Make the original window focused, or on top in line 3...

      Comment

      • TheRedZone
        Confirmed User
        • Jan 2003
        • 147

        #4
        Originally posted by Azathoth


        A basic popunder would look like this:
        Code:
        win2 = window. o pen("http://url.to.popunder/page.html"_blank");
        win2.blur()
        window.focus()
        Minus the spaces in the open statement.

        Thanks, that worked great.
        My IQ is higher than my postcount, but it hasn't really helped me that much....

        Comment

        • WebDork
          Confirmed User
          • Jan 2002
          • 402

          #5
          Anyone have a version that would only open once per session ?
          Video Ipod Porn Site with Affiliate Program. http://www.podies.com
          Free 1:1 Adult Webmaster Banner Exchange.

          Comment

          • Azathoth
            Confirmed User
            • Nov 2002
            • 217

            #6
            Originally posted by WebDork
            Anyone have a version that would only open once per session ?
            Kinda.. it's not all in JS so it's prolly not much good to you.. Basically you want to
            use cookies to identify users and expire them in time+1 hour or whatever. If the
            cookie isn't present.. give em the popunder.

            Comment

            • WebDork
              Confirmed User
              • Jan 2002
              • 402

              #7
              I got one - so its cool. Thanks!
              Video Ipod Porn Site with Affiliate Program. http://www.podies.com
              Free 1:1 Adult Webmaster Banner Exchange.

              Comment

              Working...