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
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 10-13-2005, 11:42 AM   #1
BigRod
Confirmed User
 
BigRod's Avatar
 
Join Date: Apr 2005
Location: Vancouver, BC
Posts: 3,685
Javascript Exit Popup Code: Please

Hello GFY I am looking for a exit popup script that works. If it works in both IE and Firefox thats a plus.

Your help is greatly appreciated!

Thanks ahead of time
__________________
Rod Macdonald
Mainstream Ad Agency Owner
ICQ: 607306
BigRod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-13-2005, 12:19 PM   #2
BigRod
Confirmed User
 
BigRod's Avatar
 
Join Date: Apr 2005
Location: Vancouver, BC
Posts: 3,685
Bump....
__________________
Rod Macdonald
Mainstream Ad Agency Owner
ICQ: 607306
BigRod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-13-2005, 12:36 PM   #3
fetishblog
Confirmed User
 
Join Date: Sep 2005
Location: Your mom is my favorite pornstar!#%
Posts: 5,995
Code:
<SCRIPT LANGUAGE="JavaScript">
<!--begin

function popup(filename){
window.open(filename, "","height=300,width=300,top=0,left=0,location=no,menubar=no,
resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
}
// end -->
</SCRIPT>
To make the new window pop up on exit using the example code above, you simply add the following code to your body tag:

Code:
onUnload="popup('popup.html')"
Your body tag may therefore look like the following:

Code:
<body bgcolor="white" onUnload="popup('popup.html')">
As you can see by this code, we have set a variable to true, and then test that this variable is still true before the new window is displayed. If the variable is not true, the popup will simply not appear.

To enable this, we need to then add code to all the links and buttons, where if the user clicks them we do *not* want the popup to appear. Other links and buttons we just leave well alone.

This is the code we need:

Code:
onclick="exit=false;"
This sets the value of the exit variable to false, so that when the test on the variable runs, it will fail and the new window will not appear.

We add this code to the relevant tags for buttons and links as follows. Here's an example for a standard link:

Code:
<a href="purchase.html" onclick="exit=false;">Buy now!</a>
If you want to add the code to a button rather than a link, here's an example of how you should install the code:

Code:
<input type="button" value="Buy now!" onclick="exit=false;">
That's all there is to it. As always, make sure you test your web page before you upload it to your web site to make sure it works to your satisfaction.
__________________

Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!
fetishblog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-13-2005, 12:40 PM   #4
romeoboi
Confirmed User
 
Join Date: Aug 2003
Posts: 343
Ive seen a few sites use a 1x1 pixel size flash .swf file that is able to popup a window without getting blocked by the popup blockers which work on javascript - anyone know where there is more info on something like that?
__________________

Cash in on Exclusive ZERO TOLERANCE DVD Downloads!
romeoboi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-13-2005, 12:54 PM   #5
Argoz
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: Qc
Posts: 3,006
Quote:
Originally Posted by romeoboi
Ive seen a few sites use a 1x1 pixel size flash .swf file that is able to popup a window without getting blocked by the popup blockers which work on javascript - anyone know where there is more info on something like that?
Good question.
__________________
rssEVOLUTION : Produce a FULL website with ANY RSS feed(s) in seconds.

contentSOLUTION : Allowing you to automatically grab articles from article directories,
import as many text files as you want at once, grab ANY content from ANY RSS feed, and scrape search engines, instantly.
Argoz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-13-2005, 12:56 PM   #6
BoNgHiTtA
Confirmed User
 
Join Date: May 2003
Location: Seattle
Posts: 2,176
Cant do exit pops in firefox from what I understand. Smokey has some good stuff for doing it in IE though. Search by his name
BoNgHiTtA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-13-2005, 02:13 PM   #7
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by fetishblog
...
good info, but too bad that hasn't worked for 2+ years...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-13-2005, 03:08 PM   #8
BigRod
Confirmed User
 
BigRod's Avatar
 
Join Date: Apr 2005
Location: Vancouver, BC
Posts: 3,685
Thanks for the info people very much appreciated....
__________________
Rod Macdonald
Mainstream Ad Agency Owner
ICQ: 607306
BigRod 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



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.