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 04-08-2002, 11:41 AM   #1
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
javascript help

this was a post on webmaster q and fuckin a from me:


I'm trying to do a simple javascript...

What it does:
If a person views my page and exits without clicking any links, a popup window comes up. But if they click a link, no popup comes up when the page unloads.

I know its something with onClick="set a variable'

then a function that is called in onUnload that checks the var value, but since I do not know Javascript at all, and I am lost.

Any help is appreciated, thanks.
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-08-2002, 11:42 AM   #2
Seaz
Confirmed User
 
Join Date: Mar 2002
Location: Montreal
Posts: 773
is anything in java simple ???
Seaz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-08-2002, 12:19 PM   #3
Tedster
So Fucking Banned
 
Join Date: Mar 2002
Location: Belgica
Posts: 224
check out http://javascriptkit.com
Tedster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-08-2002, 12:55 PM   #4
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
sent you a complete solution for that.
Better post 1 time only
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-08-2002, 01:24 PM   #5
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
Hey.
HTML code wont paste easy - so i changed all the "<" to "< " (added space so it wont fuckup the reply)...
So here it is
<HR>

< HTML>
< HEAD>
< SCRIPT>
var clicked = 0;
function click_link (url){
clicked = 1;
window.open(url);
};

function closewin()
{
if (clicked==0) {window.open('http://www.xxxmanager.com');};
};

< /SCRIPT>
< /HEAD>
< BODY ONUNLOAD="closewin();">
< A

HREF="Javascript:click_link('http://www.tgplay.com');">http://ww

w.tgplay.com< /A>
< BR>
< A

HREF="Javascript:click_link('http://www.gofuckyourself.com');">h

ttp://www.gofuckyourself.com< /A>
< BR>
< BR>
courtesy of XXXManager.com ;)
< /BODY>
< /HTML>
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-08-2002, 02:46 PM   #6
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
thanks man
Alky 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.