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)
-   -   This AD will make you SHITLOADS of money !!!! (https://gfy.com/showthread.php?t=977792)

SmokeyTheBear 07-13-2010 09:52 AM

This AD will make you SHITLOADS of money !!!!
 
While the concept isn't new this method has been pulling some serious coin from some very low profit sites for me so i thought i would share.

The ad is a very lightweight cookie based overlay that is very easy to modify to promote any site/sponsor/niche/product.

Basically it is an overlay that is based on cookies so it only is displayed one time to your surfers. The overlay displays an iframe/ad of your choice with a special one time offer

To see what the overlay would look like on this thread CLICK HERE

To test what it would look like on your site CLICK HERE and enter your site url

The example script is hosted courtesy of PAPERSTREETCASH , if you plan on using the code or just need a solid sponsor please sign up , if you are a sponsor who wants to use the code for your affiliates to use shoot me an icq first ( or an epass payment :winkwink: )



save code as code.js , place before closing body tag


Code:



// test for ie
var IE = /*@cc_on!@*/false;

// overlay url (displayed in iframe)
var ourl = "http://yoururl/iframe.html";

// cookie name
var cun = "mypop";

// overlay width
var owi = 750;

// overlay height
var ohi = 400;

// exit url for using as adult content warning
var xit = "http://google.com";


// overlay height plus space for close url
var ohf = ohi + 15;




// grab cookie
stbc=getCookie(cun);

// set overlay after 1.5 seconds
setTimeout('pover();', 1500);

function pover(){
if (stbc =="1"){ 
// do nothing - cookie is already set
} else {
// user has no cookie

// start creating overlay

// create div
var divTag = document.createElement("div");
                divTag.id = "stb";
                divTag.setAttribute("width","100%");
                divTag.setAttribute("height","100%");
                divTag.className ="stbovera";
                divTag.innerHTML = "<table width='100%' height='100%' bgcolor=black><tr><td align='center' valign='middle' width='100%' height='100%'><center><table style='z-index:11111' width='" + owi + "' height='" + ohi + "'><tr><td><center><br></td></tr></table></td></tr></table>";
                document.body.appendChild(divTag);
// modify div1
document.getElementById("stb").style.opacity="0.8";
document.getElementById("stb").style.left="0px";
document.getElementById("stb").style.top="0px";
document.getElementById("stb").style.width="100%";
document.getElementById("stb").style.height="100%";
document.getElementById("stb").style.position="fixed";
document.getElementById("stb").style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=80)";
// create div2
var divTag = document.createElement("div");
                divTag.id = "sbt";
                divTag.setAttribute("width","100%");
                divTag.setAttribute("height","100%");
                divTag.className ="stboverb";
                divTag.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%'><center><table style='z-index:11112' width='" + owi + "' height='" + ohf + "' bgcolor=red><tr><td><center><div id=filla></div><a href='javascript:jah(0);'><font color=white>NO THANKS</font></a><br></td></tr></table></td></tr></table>";
                document.body.appendChild(divTag);
// modify div2
document.getElementById("sbt").style.left="0px";
document.getElementById("sbt").style.top="0px";
document.getElementById("sbt").style.width="100%";
document.getElementById("sbt").style.height="100%";
document.getElementById("sbt").style.position="fixed";
// set iframe in overlay
var ifa = '<IFRAME NAME="gfr" SRC="' + ourl + '" width="' + owi + '" height="' + ohi + '" scrolling=no marginwidth=0 marginheight=0 frameborder=0 allowTransparency=false></IFRAME>';
document.getElementById("filla").innerHTML = ifa;


}

}

// function for clicking close

function jah(bam){


  if (bam == 1){
window.open(xit,"_top");
    } else {
// set cookie 365 days
setCookie(cun,'1',365);
document.getElementById("stb").style.display="none";
document.getElementById("sbt").style.display="none";
window.focus();
setTimeout('window.focus()', 500);



    }


}

// get and set cookie functions
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

* important note
to use this code your page must have a valid doctype or ie7 users will not see the overlay properly
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
place at the very top of your page before <html>

alias 07-13-2010 10:03 AM

Looks cool man, thanks. :thumbsup

TheSenator 07-13-2010 10:07 AM

Cool...that is similar to the ones I see on lyric sites.

Paper_Amar 07-13-2010 10:09 AM

bump for my man!

fatfoo 07-13-2010 10:10 AM

It's all about the advertisement.
Without the advertisement, you would not even know the product exists.

Raf1 07-13-2010 10:10 AM

here's a bump to get more people to check it out

quiet 07-13-2010 10:17 AM

nice man

Amputate Your Head 07-13-2010 10:21 AM

Very nice Smokey... :thumbsup

Altheon 07-13-2010 10:23 AM

That's bad-ass. Thank you Smokey!

munki 07-13-2010 10:23 AM

That's some sexy js.

Caligari 07-13-2010 10:31 AM

good one man, thanks!

SmokeyTheBear 07-13-2010 10:46 AM

another very usefull way to use this code is to use it as an adult content warning. Using this method you can guarantee a popunder on every surfer

Code:


// test for ie
var IE = /*@cc_on!@*/false;

// popunder url
var ourl = "https://gfy.com";

// cookie name
var cun = "mypop";

// overlay width
var owi = 750;

// overlay height
var ohi = 400;

// exit url for using as adult content warning
var xit = "http://google.com";


// overlay height plus space for close url
var ohf = ohi + 15;




// grab cookie
stbc=getCookie(cun);

// set overlay after 1.5 seconds
setTimeout('pover();', 1500);

function pover(){
if (stbc =="1"){ 
// do nothing - cookie is already set
} else {
// user has no cookie

// start creating overlay

// create div
var divTag = document.createElement("div");
                divTag.id = "stb";
                divTag.setAttribute("width","100%");
                divTag.setAttribute("height","100%");
                divTag.className ="stbovera";
                divTag.innerHTML = "<table width='100%' height='100%' bgcolor=black><tr><td align='center' valign='middle' width='100%' height='100%'><center><table style='z-index:11111' width='" + owi + "' height='" + ohi + "'><tr><td><center><br></td></tr></table></td></tr></table>";
                document.body.appendChild(divTag);
// modify div1
document.getElementById("stb").style.opacity="0.8";
document.getElementById("stb").style.left="0px";
document.getElementById("stb").style.top="0px";
document.getElementById("stb").style.width="100%";
document.getElementById("stb").style.height="100%";
document.getElementById("stb").style.position="fixed";
document.getElementById("stb").style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=80)";
// create div2
var divTag = document.createElement("div");
                divTag.id = "sbt";
                divTag.setAttribute("width","100%");
                divTag.setAttribute("height","100%");
                divTag.className ="stboverb";
                divTag.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%'><center><table style='z-index:11112' width='" + owi + "' height='" + ohf + "' bgcolor=red><tr><td><center><div id=filla><h1>WARNING</h1> This website contains sexual content and is intended for adults only<br><br></div><a href='javascript:jah(0);'><font color=white>ENTER</font></a> | <a href='javascript:jah(1);'><font color=white>EXIT</font></a><br></td></tr></table></td></tr></table>";
                document.body.appendChild(divTag);
// modify div2
document.getElementById("sbt").style.left="0px";
document.getElementById("sbt").style.top="0px";
document.getElementById("sbt").style.width="100%";
document.getElementById("sbt").style.height="100%";
document.getElementById("sbt").style.position="fixed";




}

}

// function for clicking close

function jah(bam){


  if (bam == 1){
window.open(xit,"_top");
    } else {
// set cookie 365 days
setCookie(cun,'1',365);
stbWin = open('', 'stbunder','');
   
    if (stbWin) {
        stbWin.blur();
        stbWin.location = ourl;
        self.focus();
    }

document.getElementById("stb").style.display="none";
document.getElementById("sbt").style.display="none";
window.focus();
setTimeout('self.focus()', 500);



    }


}

// get and set cookie functions
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

to see the code used as an adult content warning popunder try it HERE

TrainWreckContent 07-13-2010 10:49 AM

thanks for sharing

seeandsee 07-13-2010 11:00 AM

THAnks for the code Smokey!

cybermike 07-13-2010 11:04 AM

Nice trying it on one of my sites but when I click the no thanks it pops a blank window and the original won't close.. what should I do?

Jakez 07-13-2010 11:16 AM

Tip: if you have any programming knowledge, you can use this for your referring sites traffic and display "visit our friends sites below" links/thumbs for traded traffic, and for your valuable traffic coming from search engines display your "are you looking for [searched term here] porn?" with your links/thumbs going to sponsors.

SmokeyTheBear 07-13-2010 11:20 AM

Quote:

Originally Posted by cybermike (Post 17332094)
Nice trying it on one of my sites but when I click the no thanks it pops a blank window and the original won't close.. what should I do?

hmm what browser ? try the demo again and see if it works correctly , i made one small midifcation for browsers that might not catch the no thanks java

MikeSmoke 07-13-2010 11:22 AM

I know I'm dense - but where do you insert your affiliate code in there?

cybermike 07-13-2010 11:30 AM

in the example it works.. I must be doing something wrong.. does it matter if I'm using <base target="_blank"> ?

Chosen 07-13-2010 11:32 AM

Thanks :thumbsup

SmokeyTheBear 07-13-2010 01:02 PM

Quote:

Originally Posted by cybermike (Post 17332177)
in the example it works.. I must be doing something wrong.. does it matter if I'm using <base target="_blank"> ?

ahh yes don't use that, or simply change this line

<a href='javascript:jah(0);'>

to
<a href='#' onclick='javascript:jah(0);'>

SmokeyTheBear 07-13-2010 01:07 PM

Quote:

Originally Posted by MikeSmoke (Post 17332149)
I know I'm dense - but where do you insert your affiliate code in there?

you can use any ad from any sponsor


basically you make an html page with just an advertisement on it , this will be used as an iframe on the overlay

you point to your html ad page in the javascript

// overlay url (displayed in iframe)
var ourl = "http://yoururl/iframe.html";

MikeSmoke 07-13-2010 01:12 PM

<slapping self on head>
DUH.
thanks :thumbsup

cybermike 07-13-2010 01:21 PM

Thanks now it works.. now lets see if anyone actually buys anything or kill traffic heh

u-Bob 07-13-2010 01:22 PM

not compatible with older versions of FF.

pradaboy 07-13-2010 03:45 PM

Very nice Smokey!

PersianKitty 07-13-2010 03:53 PM

Quote:

Originally Posted by SmokeyTheBear (Post 17332019)

to see the code used as an adult content warning popunder try it HERE

hehe....

Ecchi22 07-13-2010 05:21 PM

Looks nice! I'll use it :)

Fenris Wolf 07-13-2010 05:33 PM

Thank you for sharing.

SmokeyTheBear 07-13-2010 10:13 PM

Quote:

Originally Posted by u-Bob (Post 17332549)
not compatible with older versions of FF.

might just be the opacity part ? does it not show entirely or ?

you could try adding this right before this line
"// modify div1"

document.getElementById("stb").style.MozOpacity=". 50";

Jack Sparrow 07-14-2010 04:54 AM

Smokey can you hit me up? Couldnt find your icq.

awxm 07-14-2010 05:23 AM

Thanks Smokey, will try this out.

CaptainHowdy 07-14-2010 06:10 AM

I love you, Smokey...

Fabien 07-14-2010 06:37 AM

Thanks

what's the insert code (to make sure...)

LongBG 07-14-2010 06:54 AM

That's very helpful Smokey, though I think it would be more interested if you could delay
when this actually overlays?

As in, Surfer hits site everything is normal. 2 seconds pass and then this overlay happens?

What do you think?

SmokeyTheBear 07-14-2010 08:12 AM

Quote:

Originally Posted by LongBG (Post 17334189)
That's very helpful Smokey, though I think it would be more interested if you could delay
when this actually overlays?

As in, Surfer hits site everything is normal. 2 seconds pass and then this overlay happens?

What do you think?

i actually built it into the script , see the following line

// set overlay after 1.5 seconds
setTimeout('pover();', 1500);

LongBG 07-14-2010 08:18 AM

Quote:

Originally Posted by SmokeyTheBear (Post 17334393)
i actually built it into the script , see the following line

// set overlay after 1.5 seconds
setTimeout('pover();', 1500);

Oh yes, my bad...

You rock! :thumbsup

IllTestYourGirls 07-14-2010 08:43 AM

Quote:

Originally Posted by Jakez (Post 17332123)
Tip: if you have any programming knowledge, you can use this for your referring sites traffic and display "visit our friends sites below" links/thumbs for traded traffic, and for your valuable traffic coming from search engines display your "are you looking for [searched term here] porn?" with your links/thumbs going to sponsors.

I would like to know how to do this :thumbsup

SmokeyTheBear 07-14-2010 08:53 AM

Quote:

Originally Posted by LongBG (Post 17334404)
Oh yes, my bad...

You rock! :thumbsup

i usually set mine to about 5 seconds. obviously page stats vary according to design but i once built a script to log how long between a user loading the page and them going for the scrollbar and the avg was around 5 seconds.

Bex 07-14-2010 10:59 AM

Very cool. You mind if I get a tech to mess with it and let our webmasters use it?

Fabien 07-14-2010 11:35 AM

As i suck a scripting, what is code i need to enter into my page get code.js triggered ?
You know, the
<javascript blhabhla> thingo

Thanks

CIVMatt 07-14-2010 12:11 PM

Smokey what do you have to do with Kirzenchat?

Fabien 07-14-2010 12:18 PM

Quote:

Originally Posted by Fabien (Post 17335016)
As i suck a scripting, what is code i need to enter into my page get code.js triggered ?
You know, the
<javascript blhabhla> thingo

Thanks

As i suck at english too i should add:1orglaugh

awxm 07-14-2010 12:23 PM

Quote:

Originally Posted by Fabien (Post 17335016)
As i suck a scripting, what is code i need to enter into my page get code.js triggered ?
You know, the
<javascript blhabhla> thingo

Thanks

Code:

<script type="text/javascript" src="code.js"></script>

Nicky 07-14-2010 12:31 PM

This will be useful. Thanks

Fabien 07-14-2010 05:32 PM

Weird, i got the ad again when testing my stuff ? Isn't suppose to show only once ?

DVTimes 07-14-2010 05:37 PM

thats cool

Fabien 07-14-2010 05:41 PM

Weird, if i click on "no thanks" with firefox the ad doesn't disapear. What about you guys ?
Works with Chrome tho

HighEnergy 07-14-2010 07:11 PM

Welcome to 2006

SmokeyTheBear 07-15-2010 01:55 PM

Quote:

Originally Posted by Fabien (Post 17336001)
Weird, i got the ad again when testing my stuff ? Isn't suppose to show only once ?

if the cookie name is changed it will display twice. i suspect something else is the problem , the cookie is only set if the user clicks the no thanks


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

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