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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-07-2012, 04:46 AM   #1
TheSwed
Confirmed User
 
TheSwed's Avatar
 
Join Date: Feb 2004
Location: Sweden.
Posts: 3,483
Good Pop Under Code

Need a code that actually works?
TheSwed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 05:25 AM   #2
hdbuilder
Confirmed User
 
hdbuilder's Avatar
 
Industry Role:
Join Date: Jun 2012
Location: Canada
Posts: 1,338
<SCRIPT>
var puShown = false;
var PopWidth = (screen.width);
var PopHeight = (screen.height);
var PopFocus = 0;
var _Top = null;

function GetWindowHeight() {
var myHeight = 0;
if( typeof( _Top.window.innerHeight ) == 'number' ) {
myHeight = _Top.window.innerHeight;
} else if( _Top.document.documentElement && _Top.document.documentElement.clientHeight ) {
myHeight = _Top.document.documentElement.clientHeight;
} else if( _Top.document.body && _Top.document.body.clientHeight ) {
myHeight = _Top.document.body.clientHeight;
}
return myHeight;
}
function GetWindowWidth() {
var myWidth = 0;
if( typeof( _Top.window.innerWidth ) == 'number' ) {
myWidth = _Top.window.innerWidth;
} else if( _Top.document.documentElement && _Top.document.documentElement.clientWidth ) {
myWidth = _Top.document.documentElement.clientWidth;
} else if( _Top.document.body && _Top.document.body.clientWidth ) {
myWidth = _Top.document.body.clientWidth;
}
return myWidth;
}
function GetWindowTop() {
return (_Top.window.screenTop != undefined) ? _Top.window.screenTop : _Top.window.screenY;
}
function GetWindowLeft() {
return (_Top.window.screenLeft != undefined) ? _Top.window.screenLeft : _Top.window.screenX;
}
function doOpen(url)
{
var popURL = "about:blank"
var popID = "ad_" + Math.floor(89999999*Math.random()+10000000);
var pxLeft = 0;
var pxTop = 0;
pxLeft = (GetWindowLeft() + (GetWindowWidth() / 2) - (PopWidth / 2));
pxTop = (GetWindowTop() + (GetWindowHeight() / 2) - (PopHeight / 2));
if ( puShown == true )
{
return true;
}
var PopWin=_Top.window.open(popURL,popID,'toolbar=0,sc rollbars=1,location=1,statusbar=1,menubar=1,resiza ble=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + PopWidth + ',height=' + PopHeight);
if (PopWin)
{
puShown = true;
if (PopFocus == 0)
{
PopWin.blur();
if (navigator.userAgent.toLowerCase().indexOf("applew ebkit") > -1)
{
_Top.window.blur();
_Top.window.focus();
}
}
PopWin.Init = function(e) {
with (e) {
Params = e.Params;
Main = function(){
if (typeof window.mozPaintCount != "undefined") {
var x = window.open("about:blank");
x.close();
}
var popURL = Params.PopURL;
try { opener.window.focus(); }
catch (err) { }
window.location = popURL;
}
Main();
}
};
PopWin.Params = {
PopURL: url
}
PopWin.Init(PopWin);
}
return PopWin;
}
function setCookie(name, value, time)
{
var expires = new Date();
expires.setTime( expires.getTime() + time );
document.cookie = name + '=' + value + '; path=/;' + '; 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()
{
_Top = self;
if (top != self)
{
try
{
if (top.document.location.toString())
_Top = top;
}
catch(err) { }
}
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://POPUPURL.com');
setCookie('popundr', 1, 1*60*60*1000);
}
}
initPu();
</script>
hdbuilder is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 05:27 AM   #3
hdbuilder
Confirmed User
 
hdbuilder's Avatar
 
Industry Role:
Join Date: Jun 2012
Location: Canada
Posts: 1,338
Or this one works also:

<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=700,width=1014');

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://www.POPURL.com');

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

initPu();
</script>
hdbuilder is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 05:50 AM   #4
TheSwed
Confirmed User
 
TheSwed's Avatar
 
Join Date: Feb 2004
Location: Sweden.
Posts: 3,483
Thank you
TheSwed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 07:59 AM   #5
adult_text_links
So Fucking Banned
 
Industry Role:
Join Date: Jan 2011
Posts: 221
BRAVO!! TY


adult_text_links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 08:18 AM   #6
RegUser
Confirmed User
 
Join Date: Nov 2004
Posts: 1,472
Thanks for the codes
Any pop up codes?
RegUser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 08:29 AM   #7
KillerK
Confirmed User
 
Join Date: May 2008
Posts: 3,406
thanks for hte post
KillerK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 08:42 AM   #8
Lace
Too lazy to set a custom title
 
Lace's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 16,116
These work well too and aren't too intrusive - http://www.asp.net/ajaxLibrary/AjaxC...odalPopup.aspx
__________________
Your Paysite Partner
Strength In Numbers!
StickyDollars | RadicalCash | KennysPennies | HomegrownCash
Lace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 06:06 PM   #9
hdbuilder
Confirmed User
 
hdbuilder's Avatar
 
Industry Role:
Join Date: Jun 2012
Location: Canada
Posts: 1,338
No I only use pop unders...
hdbuilder is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-07-2012, 10:17 PM   #10
looky_lou
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: Seattle, WA
Posts: 1,771
Both of these scripts pop over for me on IE, Firefox, and Chrome.

I could really use one that actually will pop-under on all browsers in a full size window.
__________________
PUSSY - PUSSY - PUSSY!
Wet & Puffy - Wet & Pissy - We Like To Suck
Puffy Cash
looky_lou is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-08-2012, 04:54 AM   #11
hdbuilder
Confirmed User
 
hdbuilder's Avatar
 
Industry Role:
Join Date: Jun 2012
Location: Canada
Posts: 1,338
Do you install them just after the body tag? I have been using the second one for years but since I've switched to plugrush i stopped using it. May be they don't work with latest release of Chrome and Firefox...
hdbuilder is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-08-2012, 08:41 AM   #12
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by looky_lou View Post
Both of these scripts pop over for me on IE, Firefox, and Chrome.

I could really use one that actually will pop-under on all browsers in a full size window.
popunder using jquery

Code:
usage examples:

$.popunder('http://google.com',24); // once every 24 hours
$.popunder('http://google.com',0); // reset when browser closes
$.popunder('http://google.com'); // every time
if you want this leave your contact info.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-09-2012, 02:10 AM   #13
looky_lou
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: Seattle, WA
Posts: 1,771
Quote:
Originally Posted by fris View Post
popunder using jquery

Code:
usage examples:

$.popunder('http://google.com',24); // once every 24 hours
$.popunder('http://google.com',0); // reset when browser closes
$.popunder('http://google.com'); // every time
if you want this leave your contact info.
Fris,

Send it to seymorebikini {at>> gmail.com

I will give it a try.
__________________
PUSSY - PUSSY - PUSSY!
Wet & Puffy - Wet & Pissy - We Like To Suck
Puffy Cash
looky_lou is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-09-2012, 04:37 AM   #14
archy
Confirmed User
 
Industry Role:
Join Date: Feb 2006
Location: www
Posts: 52
Fris can you send it to me too
mail art {_at_} pornex.com
archy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-09-2012, 06:15 AM   #15
Simon
Confirmed User
 
Simon's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Florida's Kinky Keys
Posts: 189
Quote:
Originally Posted by fris View Post
popunder using jquery
if you want this leave your contact info.
Fris ... I'd like to take a look too.

Please send to email in my signature.

Thanks.
__________________
See most arguments on GFY explained in about 5 seconds
email: simon <at> IndustryInc dot com | icq: 269~043~019
"If you want a happy ending, that depends, of course, on where you stop your story."
Simon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-09-2012, 12:29 PM   #16
crunkedge
Confirmed User
 
crunkedge's Avatar
 
Industry Role:
Join Date: Apr 2009
Posts: 264
I have nice one, with focus off, crossbrowser, email me <saymrs at gmail com> I can attach it for u
crunkedge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-09-2012, 02:17 PM   #17
rastan
Master(bater)
 
rastan's Avatar
 
Industry Role:
Join Date: Aug 2010
Posts: 914
Quote:
Originally Posted by fris View Post
popunder using jquery
Code:
usage examples:

$.popunder('http://google.com',24); // once every 24 hours
$.popunder('http://google.com',0); // reset when browser closes
$.popunder('http://google.com'); // every time
if you want this leave your contact info.

Sounds ideal Fris- please send it to admin (at) britsexcash.com
cheer fella!
__________________
Rob | Britsexcash.com | @splatbukkake | Skype: BritSexCash
rastan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2012, 11:47 AM   #18
Milfer
Confirmed User
 
Milfer's Avatar
 
Industry Role:
Join Date: Dec 2008
Posts: 1,149
Quote:
Originally Posted by fris View Post
popunder using jquery

Code:
usage examples:

$.popunder('http://google.com',24); // once every 24 hours
$.popunder('http://google.com',0); // reset when browser closes
$.popunder('http://google.com'); // every time
if you want this leave your contact info.
Will it work on wordpress? if yes, please send me info, I am also looking for pop exit
Milfer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2012, 11:50 AM   #19
Milfer
Confirmed User
 
Milfer's Avatar
 
Industry Role:
Join Date: Dec 2008
Posts: 1,149
Quote:
Originally Posted by pillow View Post
I have nice one, with focus off, crossbrowser, email me <saymrs at gmail com> I can attach it for u
yes I am interested
Milfer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2012, 08:16 PM   #20
Tat2Jr
Confirmed User
 
Tat2Jr's Avatar
 
Join Date: Feb 2001
Location: Sunny California
Posts: 4,882
Fris - I'd love a copy too. Thanks in advance!
webmaster -at- nichemoney.com
__________________
NICHE MONEY >> Ass WorshipPantiesSolo TeenPantyhose
Serving up exclusive fetish sites since 1997!
Tat2Jr is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2012, 05:20 AM   #21
RegUser
Confirmed User
 
Join Date: Nov 2004
Posts: 1,472
are these codes unblockable on IE and other browsers?
RegUser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
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.