Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 03-20-2013, 09:33 AM   #1
tonyantone
Confirmed User
 
tonyantone's Avatar
 
Industry Role:
Join Date: Apr 2012
Posts: 284
Need Help! Javascript Popunder

Hey Crew!

I need the following Javascript Popunder to GO BEHIND THE MAIN WINDOW!

Does anyone know what change to make to this so that it will do this?

in this form it works but stays in front on main page I need it to show up BEHIND

so when user leaves Site the Window to still there!

I would appreciate any help from the masters of Java! out there!

OR if not if you just know what to change! that works too!



here it is..


<script type="text/javascript">
var puShown = false;

function doOpen(url)
{
if ( puShown == true )
{
return true;
}
var wFeatures = "toolbar=0,statusbar=1,resizable=1,scrollbars= 1,me nubar=1,location=1,directories=0";
if(navigator.userAgent.indexOf('Chrome') != -1){
wFeatures = "scrollbar=yes";
}
pu_window= window.open('about:blank','wmPu',wFeatures + ',height=1200,width=1800');

var regex = new RegExp(/rv:[2-9]/);
if (regex.exec(navigator.userAgent)) {
pu_window.ljPop = function (jsm_url) {

if (regex.exec(navigator.userAgent)) { // Gecko 2+
this.window.open('about:blank').close();
}
this.document.location.href = url;
};
pu_window.ljPop(url);
}
else {
pu_window.document.location.href = url;
}
setTimeout(window.focus);
window.focus();

if(pu_window) {
pu_window.blur();
puShown = true;
}

return pu_window;
}


function setCookie(name, value, time)
{
var expires = new Date();

expires.setTime( expires.getTime() + time );

document.cookie = name + '=' + value + '; expires=' + expires.toGMTString();
}


function getCookie(name) {
var cookies = document.cookie.toString().split('; ');
var cookie, c_name, c_value;

for (var n=0; n<cookies.length; n++) {
cookie = cookies[n].split('=');
c_name = cookie[0];
c_value = cookie[1];

if ( c_name == name ) {
return c_value;
}
}

return null;
}


function initPu()
{
if ( document.attachEvent )
{
document.attachEvent( 'onclick', checkTarget );
}
else if ( document.addEventListener )
{
document.addEventListener( 'click', checkTarget, false );
}
}


function checkTarget(e)
{
if ( !getCookie('popundr') ) {
var e = e || window.event;
var win = doOpen('http://affiliates.thrixxx.com/scripts/connect.php?aid=9680656&ad=0&pr=8&ts=3&c=0');

setCookie('popundr', 1, 24*60*60*1000);
}
}

initPu();
</script>






************************************************** *************************

Last edited by tonyantone; 03-20-2013 at 09:35 AM..
tonyantone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-20-2013, 11:41 AM   #2
Itchy
Datetronix.com
 
Itchy's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Chill-A-Wack BC
Posts: 6,524
https://github.com/hpbuniat/jquery-popunder/issues/15
__________________


ICQ: 2588560
Skype: Pornocop

Itchy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.