![]() |
![]() |
![]() |
||||
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 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
jquery alternative to a popunder for those who want it.
hope this is of use to someone
jquery.popunder.js way (download link) https://github.com/chrismccoy/jquery.popunder Code:
$.popunder('http://google.com',24); // once every 24 hours $.popunder('http://google.com',0); // reset when browser closes $.popunder('http://google.com'); // every time Code:
!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>jquery.popunder.js</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.cookies.js"></script> <script type="text/javascript" src="js/jquery.popunder.js"></script> <script type="text/javascript"> jQuery(document).ready(function ($) { $(document).click(function () { $.popunder('http://google.com',24); // once every 24 hours }); }); </script> </head> <body> </body> </html> Code:
var Popup = { AddListener: function(target, eventName, handler) { if (eventName == "beforeunload" || eventName == "unload") { var originalHandler = target["on" + eventName]; if (originalHandler) { target["on" + eventName] = function(e) { var ret = originalHandler(e); if (typeof(ret) == "undefined" || ret == "") ret = handler(e); return ret; }; } else { target["on" + eventName] = handler; } } else if (target.addEventListener) { target.addEventListener(eventName, handler, false); } else if (target.attachEvent) { target.attachEvent("on" + eventName, handler); } else { var originalHandler = target["on" + eventName]; if (originalHandler) { target["on" + eventName] = function(e) { originalHandler(e); handler(e); }; } else { target["on" + eventName] = handler; } } }, CreatePop: function(e) { var popURL = "about:blank" var popID = "ad_" + Math.floor(89999999 * Math.random() + 10000000); var pxLeft = 0; var pxTop = 0; // Place the window coordinates in the center of the active window pxLeft = (this.GetWindowLeft() + (this.GetWindowWidth() / 2) - (this.PopWidth / 2)); pxTop = (this.GetWindowTop() + (this.GetWindowHeight() / 2) - (this.PopHeight / 2)); // Create the popup this.PopWin = this.Window.open(popURL, popID, 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + this.PopWidth + ',height=' + this.PopHeight); if (this.PopWin) { // We don't want to pop again on the same pop load. this.PopLoaded = true; // Increment the successfull pop count cookie this.SetPoppedTotal(); // Make the popup show either in front or behind the page if (this.PopFocus == 0) { this.PopWin.blur(); if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1) { this.Window.blur(); this.Window.focus(); } } // Load the url in the placeholder window this.PopWin.Init = function(e) { with(e) { this.Params = e.Params; // IE9 Bugfix. "this" not functioning properly // Main code function this.Main = function() { if (typeof window.mozPaintCount != "undefined") { var x = this.window.open("about:blank"); x.close(); } // Set the parameters in the local scope var popURL = this.Params.PopURL; try { opener.window.focus(); } catch (err) {} window.location = popURL; } this.Main(); } }; this.PopWin.Params = { PopURL: this.PopURL } this.PopWin.Init(this.PopWin); } return true; }, GetWindowHeight: function() { var myHeight = 0; if (typeof(this.Window.innerHeight) == 'number') { //Non-IE myHeight = this.Window.innerHeight; } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientHeight) { //IE 6+ in 'standards compliant mode' myHeight = this.Window.document.documentElement.clientHeight; } else if (this.Window.document.body && this.Window.document.body.clientHeight) { //IE 4 compatible myHeight = this.Window.document.body.clientHeight; } return myHeight; }, GetWindowWidth: function() { var myWidth = 0; if (typeof(this.Window.innerWidth) == 'number') { //Non-IE myWidth = this.Window.innerWidth; } else if (this.Window.document.documentElement && this.Window.document.documentElement.clientWidth) { //IE 6+ in 'standards compliant mode' myWidth = this.Window.document.documentElement.clientWidth; } else if (this.Window.document.body && this.Window.document.body.clientWidth) { //IE 4 compatible myWidth = this.Window.document.body.clientWidth; } return myWidth; }, GetWindowTop: function() { return (this.Window.screenTop != undefined) ? this.Window.screenTop : this.Window.screenY; }, GetWindowLeft: function() { return (this.Window.screenLeft != undefined) ? this.Window.screenLeft : this.Window.screenX; }, InitPop: function(e) { // Allow one pop per page, prevent double execution if (this.PopLoaded || arguments.callee.init) return true; // Double check to see if the pop cap has been reached if (this.GetPoppedTotal() >= this.PopFreq) return true; arguments.callee.init = true; var status = this.CreatePop(e); arguments.callee.init = false; return status; }, Watch: function(ctx, options) { for (var i in options) { this[i] = options[i]; } this.Window = ctx; Popup.AddListener(this.Window.document, "click", function(e) { if (!Popup.InitPop(e)) { if (e.preventDefault) { e.preventDefault() } e.returnValue = false; } }); }, CreateCookie: function(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; this.Window.document.cookie = name + "=" + value + expires + "; path=/"; }, ReadCookie: function(name) { var ca = this.Window.document.cookie.split(';'); var nameEQ = name + "="; for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); //delete spaces if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; }, GetPoppedTotal: function() { var popTotal = this.ReadCookie(this.CookieName); popTotal = (popTotal != null) ? parseInt(popTotal) : 0; return popTotal; }, SetPoppedTotal: function() { var popTotal = this.ReadCookie(this.CookieName); if (popTotal != null) this.CreateCookie(this.CookieName, parseInt(popTotal) + 1, 1); else this.CreateCookie(this.CookieName, 1, 1); } } var PopUpConfig = { CookieName: "goog", PopFocus: 0, PopURL: "http://www.google.com", PopFreq: 1, PopWidth: 1024, PopHeight: 764 } Popup.Watch(window, PopUpConfig);
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
Where Fris took the script from.
![]() https://gist.github.com/2058263 Creator testing script. https://gist.github.com/1021924 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: May 2010
Location: Manhattan
Posts: 4,016
|
Thanks dude!
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
since tom didnt wanna do it for me, he says he doesnt know how to use a text editor, so i did it for him
https://github.com/chrismccoy/jquery.popunder
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
Quote:
Took me to say something for you to give the guy credit. ![]() If you were an honest guy you would have just posted the original. ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
Quote:
so no, i did not pass this off as my own. check the source, nothing was modified. ![]() ![]()
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,331
|
Can I see it in action?
Please
__________________
ISeekGirls.com since 2005 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Two fresh affiliate progs
Industry Role:
Join Date: Nov 2004
Location: Inside teen pussy
Posts: 29,602
|
Thanks Fris.
__________________
[email protected] Skype: 17026955414 Vacares Web Hosting - Protect Your Ass with Included Daily Backups |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
comon use diff to find out or do i have to do it for you?
since you simple dont know how, let me fill in those gaping holes for you. here i compared jquery.popunder.js to orig.js as you can see no differences at all ![]() here i compared orig.js to the ones without the cookies (both by the same owner) 7 diferences, only did this cause tom asked me too. ![]() why am i doing this? hah, i dont know, im only feeding tom the troll, so i expect nothing but more replies from tom, keep up the good work. Thesenator here is an example of it working. http://fris.net/pop/ click anywhere.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,331
|
Quote:
__________________
ISeekGirls.com since 2005 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
Is it 'funny' to anyone else that this TjTommy wasnt even heard of until the Gimme/Fris fiasco?
Now all the sudden the dude is everywhere... especially up Fris' ass... makes you go hrmmm....?!
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Oct 2005
Posts: 3,670
|
Thank you, Fris.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Icq: 14420613
Industry Role:
Join Date: Mar 2001
Location: chicago
Posts: 15,432
|
lookin good
![]() ![]()
__________________
Need WebHosting ? Email me for some great deals [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
Yah Fris you didn't EDIT OUT the guys name you just LEFT IT OUT.
LOL Quote:
All up in Fris' ass because he's a little homo he likes it. ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
Quote:
i dont mind being insulted, but have the balls to do it without needing a fake nick.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Jul 2005
Posts: 2,115
|
Thank you!
![]()
__________________
![]() ![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
So Fucking Banned
Industry Role:
Join Date: Feb 2006
Posts: 25,214
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
Thanks, Fris. Going to try this out now on a few sites.
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
Carpe Visio
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,052
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: African Planet
Posts: 1,118
|
Why this line?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> I suppose you could just download that *.js and host it on your own server?
__________________
Promote these REAL amateur sites with Exclusive content:
African Casting | Real Africans | Latina Fuck Tour | African Lesbians African Bucks Contact: support @ africanbucks.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 |
Confirmed User
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
|
thanks fris, will test it.
__________________
SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 |
Facit Omnia Voluntas
Industry Role:
Join Date: Apr 2003
Location: Offshore
Posts: 2,105
|
The idea behind using the public google api codes is that so many people use that, it's probably already loaded in the surfers browser-cache - which speeds up your load-time and saves you bandwidth.
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing Skype: jokerempire | Silent Circle: joker |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,331
|
Is there a way to combine the jquery into one file?
__________________
ISeekGirls.com since 2005 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#29 |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,331
|
__________________
ISeekGirls.com since 2005 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#30 | |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,034
|
Quote:
![]() Remember, you are bound by Googles API T&Cs when you use it....
__________________
- Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#32 |
Confirmed User
Industry Role:
Join Date: Apr 2011
Location: En la reverendisima concha de tu madre!
Posts: 3,034
|
Gonna try this for sure. Thanks for sharing.
And also for the domain dude. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#33 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
Quote:
use jquery.popunder.full.js only file required, has cookies and the popunder in 1 file. also added a compressed version Code:
[fris@fris ~/git/jquery.popunder/js]$ ls -l jquery.popunder.full.* -rw-r--r-- 1 fris fris 15861 Jun 30 22:06 jquery.popunder.full.js -rw-r--r-- 1 fris fris 4537 Jul 1 09:39 jquery.popunder.full.min.js hope this is what you meant for 1 file. if you need this as a wp plugin with an options panel to set the url,etc i will put one together later.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#34 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#35 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
Quote:
![]()
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#37 |
Lord of the Leads
Industry Role:
Join Date: May 2005
Location: Canada
Posts: 3,021
|
Tom your really annoying, Fris try to help the community here, you just a pain in the ass for everyone.
What have you done to help people make more revenue in the biz ? stop trolling, its just pointless and unproductive. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#38 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
Any fool can see what you tried to get away with here.
You have been constantly doing this over the years on GFY. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#39 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
Quote:
![]()
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#40 | |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
Quote:
You're the president and CBDO of a business and you should have kept your mouth shut. You are obviously not reading my posts but instead REACTING to them. You obviously do not understand the situation with Fris here. I am going to write your post off as ignorance. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#41 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#42 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,214
|
Quote:
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#44 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
Well it's true he has no idea what I do.
He doesn't realize what you're doing is at the cost of others. Sure you may be helping people here but you are costing other people possible sales or appreciation. You are doing this to fluff your ego and get work $$$. It's cool but imma own you on it every time. People like Nick Tamer always chiming into threads to support someone when they haven't read shit. Nick prolly read my troll to Shap in another thread and got all butthurt. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#45 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
You fucking Canadians stick together, eh?
Dicks right up each other's asses. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#47 |
So Fucking Banned
Industry Role:
Join Date: May 2011
Location: 90210
Posts: 668
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |