GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Good Pop Under Code (https://gfy.com/showthread.php?t=1088369)

TheSwed 11-07-2012 04:46 AM

Good Pop Under Code
 
Need a code that actually works?
:helpme

hdbuilder 11-07-2012 05:25 AM

<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 11-07-2012 05:27 AM

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>

TheSwed 11-07-2012 05:50 AM

Thank you
:thumbsup

adult_text_links 11-07-2012 07:59 AM

BRAVO!! :) TY


:pimp

RegUser 11-07-2012 08:18 AM

Thanks for the codes
Any pop up codes?

KillerK 11-07-2012 08:29 AM

thanks for hte post

Lace 11-07-2012 08:42 AM

These work well too and aren't too intrusive - http://www.asp.net/ajaxLibrary/AjaxC...odalPopup.aspx

hdbuilder 11-07-2012 06:06 PM

No I only use pop unders...

looky_lou 11-07-2012 10:17 PM

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.

hdbuilder 11-08-2012 04:54 AM

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...

fris 11-08-2012 08:41 AM

Quote:

Originally Posted by looky_lou (Post 19301548)
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.

looky_lou 11-09-2012 02:10 AM

Quote:

Originally Posted by fris (Post 19302212)
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.

archy 11-09-2012 04:37 AM

Fris can you send it to me too :)
mail art {_at_} pornex.com

Simon 11-09-2012 06:15 AM

Quote:

Originally Posted by fris (Post 19302212)
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. :thumbsup

crunkedge 11-09-2012 12:29 PM

I have nice one, with focus off, crossbrowser, email me <saymrs at gmail com> I can attach it for u :)

rastan 11-09-2012 02:17 PM

Quote:

Originally Posted by fris (Post 19302212)
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!

Milfer 11-18-2012 11:47 AM

Quote:

Originally Posted by fris (Post 19302212)
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 11-18-2012 11:50 AM

Quote:

Originally Posted by pillow (Post 19304607)
I have nice one, with focus off, crossbrowser, email me <saymrs at gmail com> I can attach it for u :)

yes I am interested

Tat2Jr 11-18-2012 08:16 PM

Fris - I'd love a copy too. Thanks in advance!
webmaster -at- nichemoney.com

RegUser 11-19-2012 05:20 AM

are these codes unblockable on IE and other browsers?


All times are GMT -7. The time now is 02:09 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123