Results 1 to 6 of 6
  1. #1
    casinofever is offline Public Member
    Join Date
    July 2002
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I Need Popunder Help.

    Hi all and Good day to you all, I am telling you popunder windows work GREAT! But I need to know if anyone knows a good popunder script I can use for a timed popunder code. The one I'm using now is one that pops under on entry. The reason why I would like to have one load about 10-15 seconds on entry is because when they pop under when someone visits your site it slows your main sites loading time and if it pops under after the visitor has been there for 10-15 seconds, they might be less likely to notice that it's popped under because they would be looking at your main site. The flash always gives the hint that a window popped under though and therefore most visitors close them, especially if thier expecting one to pop under on entry or exit.
    Anyway here is a great pop under code that allows you to rotate your pop under windows.

    Code:
    <script>
    
    //Pop-under window II- By JavaScript Kit
    //Credit notice must stay intact for use
    //Visit http://javascriptkit.com for this script
    
    //specify URLs to randomly select from and pop-under
    var popunder=new Array()
    popunder[0]="http://www.firstsite.com"
    popunder[1]="http://www.secondsite.com"
    popunder[2]="http://www.thirdsite.com"
    popunder[3]="http://www.fourthsite.com"
    popunder[4]="http://www.fifthsite.com"
    popunder[5]="http://www.sixthsite.com"
    //specify popunder window features
    //set 1 to enable a particular feature, 0 to disable
    var winfeatures="width=750,height=510,scrollbars=1,resizable=1,toolbar=1,
    location=0,menubar=0,status=0,directories=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(offset, end))
          }
       }
      return returnvalue;
    }
    
    function loadornot(){
    if (get_cookie('popunder')==''){
    loadpopunder()
    document.cookie="popunder=yes"
    }
    }
    
    function loadpopunder(){
    win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"",winfeatures)
    win2.blur()
    window.focus()
    }
    
    if (once_per_session==0)
    loadpopunder()
    else
    loadornot()
    
    </script>
    edited to encase the code - Sly

    The above pop under script would be perfect if you could just get it to load 10-15 seconds after entry and if it did'nt have the flash.

    With Best Regards, Casinofever
    Casino Corral Gaming Portal


    http://www.casinocorral.com

  2. #2
    croupier is offline Public Member
    Join Date
    December 1969
    Posts
    3,101
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is fairly simple, all you need to do is change the bottom few lines from

    Code:
    if (once_per_session==0) 
    loadpopunder() 
    else 
    loadornot()
    to

    Code:
    if (once_per_session==0) 
    setTimeout("loadpopunder()",10000) 
    else 
    setTimeout("loadornot()",10000)
    If the popunder you are pointing at is one of your own pages then you can drasticly reduce the 'flash' by opening the page offscreen and then moving the page. This is done by altering this line

    Code:
    var winfeatures="width=750,height=510,scrollbars=1,resizable=1, toolbar=1,location=0,menubar=0,status=0,directories=0"
    to this

    Code:
    var winfeatures="width=750,height=510,scrollbars=1,resizable=1, toolbar=1,location=0,menubar=0,status=0,directories=0,left=9999,top=9999"
    and then adding the following code to the popunder page

    Code:
    <script>
    self.moveTo(0,0)
    </script>
    If you want to popunder a page that is not under your control then simply use a redirect page. Here is an example of a redirect page that will move into view and redirect to the actual page you want the user to see

    Code:
    <html>
    <head>
    <script>
    self.moveTo(0,0)
    </script>
    <meta http-equiv="refresh" content="0;url=http://www.casino.com"> 
    </head>
    <body>
    </body>
    </html>

  3. #3
    techwoman's Avatar
    techwoman is offline Private Member
    Join Date
    November 2002
    Location
    nowhere
    Posts
    4,428
    Thanks
    11
    Thanked 41 Times in 31 Posts

    Default

    Craig,
    that was a great script change

    I just implemented it to my own popunder and its great

    Thanks
    Techwoman

    Techwomans Casino Links
    http://www.techwomanscasinolinks.com
    Online Casino Island
    http://www.online-casino-island.com
    Real Poker Rooms
    http://www.real-poker-rooms.com
    Techwomans AllStar Casinos
    http://www.techwomans-allstarcasinos.com

  4. #4
    casinofever is offline Public Member
    Join Date
    July 2002
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default WOW! This Script Ig Great! The Perfect Popunder!

    Man, What a change, the flash is totally eliminated and I set up a half dozen redirect pages to use with it & I set it to load 15 seconds after the page is loaded. This script is now the perfect popunder script! Thank You So Much Craig!

    With Best Regards, Casinofever
    Casino Corral Gaming Portal


    http://www.casinocorral.com

  5. #5
    croupier is offline Public Member
    Join Date
    December 1969
    Posts
    3,101
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The offscreen/moveto trick is a little thing I discovered and haven't seen anyone else use

    Glad you liked it

  6. #6
    techwoman's Avatar
    techwoman is offline Private Member
    Join Date
    November 2002
    Location
    nowhere
    Posts
    4,428
    Thanks
    11
    Thanked 41 Times in 31 Posts

    Default

    Yes Craig, it's an amazing trick and I love it!!!

    I can't even notice when the popunder comes up!!!

    I have to do it to my other site next
    Techwoman

    Techwomans Casino Links
    http://www.techwomanscasinolinks.com
    Online Casino Island
    http://www.online-casino-island.com
    Real Poker Rooms
    http://www.real-poker-rooms.com
    Techwomans AllStar Casinos
    http://www.techwomans-allstarcasinos.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •