Request: JS Popunder Code

Discussion in 'JavaScript' started by Nocturne, May 28, 2008.

  1. #1
    Hi all,

    I'm wondering if someone could give me a little help in creating a popunder script like on this site torrentz.ws

    The popunder get's activated by clicking any of the links on the site and only displays once. I've seen a lot of sites displaying ads or doing traffic exchange this way but I can't really find any working code for this.

    Any help is greatly appreciated

    Thanks a lot!
     
    Nocturne, May 28, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    are you talking about the "Smart jump:" links?
     
    crath, May 28, 2008 IP
  3. Nocturne

    Nocturne Member

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Thanks for your answer. Hmm... What is smart jump? I found this code which seem to do exactly what I wrote in the last post...

    Here it is (From fastclick):

    
    <script language="javascript"><!--                                 
    var dc=document; var date_ob=new Date();
    dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
    if(dc.cookie.indexOf('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){
    dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
    dc.write('/w/pop.cgi?sid=29665&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
    date_ob.setTime(date_ob.getTime()+43200000);
    dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // -->
    </script>                                                          
    
    Code (markup):
    Is there any way to get this code to load an url I input?

    Thanks!
     
    Nocturne, May 30, 2008 IP
  4. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #4
    that script has a advertisment in it... they are mooching off you :p
    remove
    dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
    dc.write('/w/pop.cgi?sid=29665&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
    Code (markup):
     
    crath, May 30, 2008 IP
  5. Nocturne

    Nocturne Member

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    He he... Yeah I know. ;) What I'm trying to do is getting the code to load my own popup eg. mysite.com instead of the ads from fastclick. This is the only code i've seen which won't get blocked by popup blockers. If you know of any better solution, please tell :p

    Thanks for your help so far
     
    Nocturne, May 31, 2008 IP
  6. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #6
    i am still unclear what a "popunder" is. care to post a screenshot?
     
    crath, May 31, 2008 IP