GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Tech Pop-under window code (https://gfy.com/showthread.php?t=1199453)

RachelBlackG 05-28-2016 05:42 AM

Pop-under window code
 
Hi,

anyone using their own pop-under code that actually works? :helpme

LuigiMdg 05-29-2016 01:38 PM

You are searching any pop-under code..?

RachelBlackG 05-30-2016 02:18 AM

I'd like to have my own code that will open my other site...I found one, but it was blocked by my browser.

LuigiMdg 05-30-2016 08:20 AM

Quote:

Originally Posted by RachelBlackG (Post 20927216)
I'd like to have my own code that will open my other site...I found one, but it was blocked by my browser.

You have AdBlock enabled..? In this case you can take a persistent notice message when adblock is enabled.. Visit my website for idea.. :D

RachelBlackG 05-30-2016 02:18 PM

Nope, I dont use adblock..

LuigiMdg 05-30-2016 04:29 PM

Uhm.. Post the code of popunder and i take a tests

RachelBlackG 05-31-2016 02:57 AM

<script>

//specify page to pop-under
var popunder="http://yahoo.com"

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=800,height=510,scrollbars=1,res izable=1,toolbar=1,location=1,menubar=1,status=1,d irectories=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(off set, end))
}
}
return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

</script>

LuigiMdg 05-31-2016 06:16 AM

Try this (replace the spaces in url):
<script>

//specify page to pop-under
var popunder="yahoo .com"

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=800,height=510,scrollbars=1,res izable=1,toolbar=1,location=1,menubar=1,status=1,d irectories=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('off set', 'end'))
}
}
return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

</script>

RachelBlackG 06-01-2016 11:06 AM

Still doesn't seem to work :( thanks anyway

LuigiMdg 06-05-2016 03:40 AM

Quote:

Originally Posted by RachelBlackG (Post 20933036)
Still doesn't seem to work :( thanks anyway

The error is in:
win2.blur()


All times are GMT -7. The time now is 07:46 PM.

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