GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   javascript help (https://gfy.com/showthread.php?t=56146)

Alky 04-08-2002 11:41 AM

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.

Seaz 04-08-2002 11:42 AM

is anything in java simple ??? :glugglug

Tedster 04-08-2002 12:19 PM

check out http://javascriptkit.com

XXXManager 04-08-2002 12:55 PM

sent you a complete solution for that.
Better post 1 time only :321GFY :Graucho

XXXManager 04-08-2002 01:24 PM

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>

Alky 04-08-2002 02:46 PM

thanks man


All times are GMT -7. The time now is 04:00 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123