![]() |
![]() |
![]() |
||||
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 |
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! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2003
Posts: 1,650
|
do a sneeky popunder
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
I like Dutch Girls
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;">
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
I like Dutch Girls
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
|
that looks cool
![]()
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
|
Thanks Bob, emailing you now!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Feb 2003
Location: Orlando, Florida
Posts: 3,521
|
Your programmer said that's impossible?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,768
|
Quote:
![]()
__________________
email: [email protected] Best AI Affiliate Program We also do WL at $0.00 upfront costs ![]() FantasyXXX.AI Teams: jean.francois.laverdiere TG: @jman1216 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
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. ;) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Industry Role:
Join Date: Oct 2003
Location: North Carolina
Posts: 4,257
|
Quote:
![]() Ivy |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
|
I spammed devshed. Maybe someone there will know
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
|
bumpppp
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
So Fucking Banned
Join Date: Mar 2003
Location: 420Calendar.com
Posts: 17,920
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
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.
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 | |
Confirmed User
Join Date: Jun 2003
Location: Las Vegas, NV
Posts: 1,525
|
Quote:
![]()
__________________
Beat it. Nothing to see here. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
Dialer Kingpin
Join Date: Jun 2003
Location: New York
Posts: 10,816
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 | |
Dialer Kingpin
Join Date: Jun 2003
Location: New York
Posts: 10,816
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 |
[----------------------]
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 |
Registered User
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). |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#29 | |
Registered User
Join Date: Jun 2003
Location: Pornvalley
Posts: 67
|
Quote:
__________________
-Enigma ICQ: 142592982 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |