![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
![]() 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 ![]() 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()); } 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">
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
aliasx
Join Date: Apr 2001
Posts: 19,010
|
Looks cool man, thanks.
![]()
__________________
https://porncorporation.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,331
|
Cool...that is similar to the ones I see on lyric sites.
__________________
ISeekGirls.com since 2005 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jun 2007
Location: North Miami Beach, Fl
Posts: 2,607
|
bump for my man!
__________________
My icq; 4 4 7 5 4 2 1 2 8 Amar @ paper street cash .com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
ICQ:649699063
Industry Role:
Join Date: Mar 2003
Posts: 27,763
|
It's all about the advertisement.
Without the advertisement, you would not even know the product exists.
__________________
Send me an email: [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Join Date: Oct 2003
Location: Writer for hire :) Gallery descriptions, articles, blog posts etc. ICQ: 209 356 106
Posts: 12,117
|
here's a bump to get more people to check it out
__________________
80% Revshare or 30$ PPS on $1 trials: 200 Niches = Vidz.com Galleries / FLVs / Embeds
3 & 5mins FLVs | RSS & Tube Feeds | Matching Thumbs | FLV Browser & Exporter | No Prechecked Xsales >> Mobile Redirection Script: mobile.vidz.com also paying 80% net Lifetime << ICQ: 198-394-557 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
we'll miss you our friend. RIP
Industry Role:
Join Date: Sep 2001
Location: Fernie, BC
Posts: 25,115
|
nice man
__________________
we'll miss you our friend. RIP |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
There can be only one
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
|
Very nice Smokey...
![]()
__________________
SIG TOO BIG |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: May 2004
Posts: 506
|
That's bad-ass. Thank you Smokey!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
That's some sexy js.
__________________
![]() “I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Oct 2009
Location: At The Mountains Of Madness
Posts: 5,414
|
good one man, thanks!
__________________
![]() ------------------------------------------------ Animal Rescue Click Here to Feed An Animal for Free |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
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()); }
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Dec 2008
Location: Under a Train Wreck
Posts: 8,128
|
thanks for sharing
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Jan 2002
Location: Ny
Posts: 4,108
|
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?
__________________
Hey surfers how about some The Best Porn Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
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
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Nov 2002
Location: SoCal
Posts: 3,233
|
I know I'm dense - but where do you insert your affiliate code in there?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: Jan 2002
Location: Ny
Posts: 4,108
|
in the example it works.. I must be doing something wrong.. does it matter if I'm using <base target="_blank"> ?
__________________
Hey surfers how about some The Best Porn Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Industry Role:
Join Date: Aug 2001
Posts: 63,151
|
Thanks
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 | |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
Quote:
<a href='javascript:jah(0);'> to <a href='#' onclick='javascript:jah(0);'>
__________________
hatisblack at yahoo.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 | |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
Quote:
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";
__________________
hatisblack at yahoo.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
Confirmed User
Join Date: Nov 2002
Location: SoCal
Posts: 3,233
|
<slapping self on head>
DUH. thanks ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
Confirmed User
Join Date: Jan 2002
Location: Ny
Posts: 4,108
|
Thanks now it works.. now lets see if anyone actually buys anything or kill traffic heh
__________________
Hey surfers how about some The Best Porn Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
not compatible with older versions of FF.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 |
sell me your banners
Industry Role:
Join Date: Dec 2003
Location: on the tubes
Posts: 12,931
|
Very nice Smokey!
__________________
Media Buyer - Sell me your traffic! FREE to register domains... Better than 99% of the crap sold here! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 |
Too lazy to set a custom title
Industry Role:
Join Date: Nov 2005
Posts: 10,012
|
Looks nice! I'll use it
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#29 |
Confirmed User
Industry Role:
Join Date: Nov 2005
Posts: 1,024
|
Thank you for sharing.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#30 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
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";
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#31 |
Almost goners..
Industry Role:
Join Date: May 2008
Location: Netherlands
Posts: 11,420
|
Smokey can you hit me up? Couldnt find your icq.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#32 |
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 819
|
Thanks Smokey, will try this out.
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#33 |
Too lazy to set a custom title
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,063
|
I love you, Smokey...
__________________
FLASH SALE INSANITY! deal with a 100% Trusted Seller Buy Traffic Spots on a High-Quality Network 1 Year or Lifetime — That’s Right, Until the Internet Explodes! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#34 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 4,787
|
Thanks
what's the insert code (to make sure...) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#35 |
Confirmed User
Industry Role:
Join Date: Jun 2007
Location: Sesame Street
Posts: 1,101
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#36 | |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
Quote:
// set overlay after 1.5 seconds setTimeout('pover();', 1500);
__________________
hatisblack at yahoo.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#37 | |
Confirmed User
Industry Role:
Join Date: Jun 2007
Location: Sesame Street
Posts: 1,101
|
Quote:
You rock! ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#38 | |
Ah My Balls
Industry Role:
Join Date: Feb 2007
Location: Under the gold leaf ICQ 388-454-421
Posts: 14,311
|
Quote:
![]()
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#39 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
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.
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#40 |
Confirmed User
Join Date: Feb 2003
Location: Canada
Posts: 2,382
|
Very cool. You mind if I get a tech to mess with it and let our webmasters use it?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#41 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 4,787
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#42 |
Amateur Pimpin
Industry Role:
Join Date: Aug 2004
Location: Orlando, FL
Posts: 13,075
|
Smokey what do you have to do with Kirzenchat?
__________________
Make easy money with Webcams |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#43 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 4,787
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#44 | |
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 819
|
Quote:
Code:
<script type="text/javascript" src="code.js"></script>
__________________
. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#45 |
Judge Jury and Executioner
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,069
|
This will be useful. Thanks
__________________
gfynicky @ gmail.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#46 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 4,787
|
Weird, i got the ad again when testing my stuff ? Isn't suppose to show only once ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#47 |
xxx
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,544
|
thats cool
__________________
The Affiliate Program |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#48 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 4,787
|
Weird, if i click on "no thanks" with firefox the ad doesn't disapear. What about you guys ?
Works with Chrome tho |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#49 |
So Fucking Banned
Join Date: Apr 2007
Posts: 806
|
Welcome to 2006
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#50 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
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
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |