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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-13-2004, 08:09 AM   #1
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
Exit popup code needed

Hey folks hoping you can give me a hand. Programmer here says it is impossible to do, and I am pretty sure he's wrong so let's embarrass him a bit ;)

I need some code that will launch an exit ONLY if the browser has been closed or the domain has been left. So they go to www.xxx.com and then go to www.www.com, they would get it.

I don't want it to launch if they go from the index page to another page on the site.

Anyone know of anything? I googled but nothing exactly like this.
Thanks!
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:13 AM   #2
{fusion}
Confirmed User
 
Join Date: Sep 2003
Posts: 1,650
do a sneeky popunder
{fusion} is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:15 AM   #3
jimmyf
OU812
 
Join Date: Feb 2001
Location: California
Posts: 12,651
I'd 2 have that code also, when they leave the domain...
__________________
Epic CashEpic Cash works for me
Solar Cash Paysite Plugin
Gallery of the day freesites,POTD,Gallery generator with free hosting
jimmyf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:16 AM   #4
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
hahahahahahahaha LANGUAGE="hahahahahahahahahaha">
var goneaway;

function showPopup() {
if( goneaway ) {
NewWindow=windowhahahahahaha("http://www.yoursiteexitpopup.com"); }
}
</hahahahahahahaha


</head>
<body bgcolor="FFE9B8" topmargin="0" marginheight="0" hahahahahahahaha"goneaway=true" ONUNLOAD="showPopup();">


make sure you add the onclick false on every link you DONT want the exit to popup :

<a href="members/pictures.php" ONCLICK="goneaway=false;">
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:17 AM   #5
DutchTeenCash
I like Dutch Girls
 
DutchTeenCash's Avatar
 
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
that looks cool drop me a line to get the code ok bob AT thinkx DOT tv
DutchTeenCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:18 AM   #6
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
Thanks Bob, emailing you now!
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:19 AM   #7
QualityMpegs
Confirmed User
 
Join Date: Feb 2003
Location: Orlando, Florida
Posts: 3,521
Your programmer said that's impossible?
__________________

PAYSITES CATEGORIZED AND THUMBNAILED BY NICHE - 69767780
QualityMpegs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:22 AM   #8
Tom_PMs
Confirmed User
 
Join Date: Jun 2004
Posts: 2,049
That looks like a normal exit popup code. If I go from index to page 1 then back button, it'll pop even if I'm on the same domain.

Or, if that code is only on index, and I go to page 1 then close browser, it wont pop.

I dont think thats the answer you're looking for, but I may be just sleepy.
__________________

You've read it, you can't unread it.
Tom_PMs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:22 AM   #9
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
Quote:
Originally posted by QualityMpegs
Your programmer said that's impossible?
Hahaha. Tell me about it.
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:25 AM   #10
Jman
Too lazy to set a custom title
 
Jman's Avatar
 
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,769
Quote:
Originally posted by BradM
Hahaha. Tell me about it.
He comes from and Island, I beleive he does not go out that much
__________________
email: [email protected]
Best AI Affiliate Program We also do WL at $0.00 upfront costs
FantasyXXX.AI
Teams: jean.francois.laverdiere
TG: @jman1216
Jman is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:44 AM   #11
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
Bump. Thanks to Bob for the code but it's not exactly what I need. This one is a bit flawed... having to add the onclick to all links is not really an option.

I'm going to keep hunting too.
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 08:53 AM   #12
Tom_PMs
Confirmed User
 
Join Date: Jun 2004
Posts: 2,049
Just thinking out loud here.
If you want to pop a window when a browser is trying to *leave* a domain, you'd have to be examining the URI that is being requested, and before it's displayed.

That is, IF currently on mydomain AND IF new action will exit mydomain, THEN pop.

So you cant really examine the current state, you'd have to examine a future state when a link or button is clicked.

You could probably do a custom mod_rewrite script.
Use the rewriterule to pass the request_uri as a query_string to the script, then do an IF THEN ELSE type of thing..

There ya go, lol
__________________

You've read it, you can't unread it.
Tom_PMs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 09:00 AM   #13
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
lol Tom I haven't touched any sort of scripting in a long ass time. You ALMOST lost me.

The question is... do I feel like programming. ;)
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 09:05 AM   #14
Tom_PMs
Confirmed User
 
Join Date: Jun 2004
Posts: 2,049
Hmm actually I doubt that would cover it anyway, lol. Like I said just thinking out loud.

If you were to click a link off your domain, your htaccess wouldnt kick in anyway. Maybe you can use php or a cookie, I dunno.
__________________

You've read it, you can't unread it.
Tom_PMs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 09:05 AM   #15
PrivateIvy
Confirmed User
 
Industry Role:
Join Date: Oct 2003
Location: North Carolina
Posts: 4,257
In your header you put this:

hahahahahahahaha language="hahahahahahahahahaha">
<!--
var exit=true;
function xit()
{
if (exit)
open("http://www..com","copy");
}
//-->
</hahahahahahahaha

Then in the body tag put this:

onunload="xit()"

Then on every other link that you don't want to pop that window you add :

onclick="exit=false


Very simplified way to do this:



Ivy
PrivateIvy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 09:07 AM   #16
PrivateIvy
Confirmed User
 
Industry Role:
Join Date: Oct 2003
Location: North Carolina
Posts: 4,257
Quote:
Originally posted by BradM
Bump. Thanks to Bob for the code but it's not exactly what I need. This one is a bit flawed... having to add the onclick to all links is not really an option.

I'm going to keep hunting too.
sorry...didn't see that you didn't want to add that snippet to your other links....ok...back to the drawing board for you

Ivy
PrivateIvy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2004, 09:26 AM   #17
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
I spammed devshed. Maybe someone there will know
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 08:28 AM   #18
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
bumpppp
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 09:02 AM   #19
fuelcell
Confirmed User
 
Join Date: Jun 2003
Location: Las Vegas, NV
Posts: 1,525
It's been awhile since I've had to do this but . . .

If memory serves, you can frame your site leaving a 1 pixel top frame which ensures that the popup code will not launch until they actually leave the site or close the browser.

Of course, far fewer people actually see popups anymore with all the blockers out there and Microsoft's update to IE is just around the corner.
__________________
Beat it. Nothing to see here.
fuelcell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 09:06 AM   #20
Reak
So Fucking Banned
 
Join Date: Mar 2003
Location: 420Calendar.com
Posts: 17,920
Reak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 09:06 AM   #21
macho
Confirmed User
 
Join Date: Nov 2001
Location: Internet
Posts: 2,875
Check some java script tutorial something like that:
http://www.webteacher.com/hahahahaha...aha/index.html
macho is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 09:19 AM   #22
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 09:45 AM   #23
fuelcell
Confirmed User
 
Join Date: Jun 2003
Location: Las Vegas, NV
Posts: 1,525
Quote:
Originally posted by BradM
Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.
Then your programmer is right.
__________________
Beat it. Nothing to see here.
fuelcell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 11:00 AM   #24
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
Quote:
Originally posted by BradM
having to add the onclick to all links is not really an option.
You're assed.
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2004, 11:02 AM   #25
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
Quote:
Originally posted by BradM
Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.
You're assed 99%.
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 04:52 AM   #26
enigma
Registered User
 
Join Date: Jun 2003
Location: Pornvalley
Posts: 67
Uh.... just make your index page a frameset with a hidden frame and a 100% visible frame. Load your site in the 100% visible frame, load your popup code in the hidden frame, and there ya go.

Checkout http://www.valmalone.com/ for an example of how to do this.

I ICQed you in case you miss this reply...
__________________
-Enigma
ICQ: 142592982
enigma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:02 AM   #27
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
fire your programmer
that code with onexit and co has been around since day 1 of the internet
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:17 AM   #28
Fizzgig
Registered User
 
Fizzgig's Avatar
 
Join Date: Feb 2004
Location: In Your Dreams
Posts: 9,649
I have to ask...

Why is that not an option? As far as I know it's the only way...

But, why is it not an option?
If you have a ton of links to edit, you do an edit/replace and it's really easy (tedious, but easy).
__________________
---'-,-{@ Sassy Grrrl @}-'-,---

Fizzgig is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:18 AM   #29
enigma
Registered User
 
Join Date: Jun 2003
Location: Pornvalley
Posts: 67
Quote:
Originally posted by BradM
Yeah the 1px frame isn't an option due to SEO. But that was the first thing I thought of.
Okay, I'll admit it--I didn't read the whole thread before I replied either (like Ivy), lol. Why don't you just put all your SEO stuff on the index page, though? Just repeat everything you have on your current index page and put it between the <noframes></noframes> tags. Won't that work? I'm no SEO, but...
__________________
-Enigma
ICQ: 142592982
enigma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.