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 question (https://gfy.com/showthread.php?t=63653)

eru 06-09-2002 02:23 PM

Javascript question
 
Let's say I have three sites: A, B, and C. How can I make it so that if a user comes to site A via some other site (such as a TGP or something) that when he leaves, he'll go to either site B or C? If the user goes directly from a TGP or something to site B, then when he leaves he will be sent to site A or C, etc.

So basically, I'm looking for a javascript where it will launch a full page exit console (regular browser window) to one of two sites.

Anyone know how this can be done?

PornAddict 06-09-2002 02:30 PM

I bought a script called Ipopup that does just that... and I love it. I use it on pretty much all my sites to swish the traffic around.

I bought it here:
http://www.scripts24.com/ipopup/index.php

hope that helps.

- PornAddict

eru 06-09-2002 02:32 PM

That seems to be kinda overkill for what I am looking for.

Seb From Holland 06-09-2002 05:02 PM

I don't get it, you want to pop-up site B and C on site A, site A and C on site B, and site A and B on site C. Isn't that like putting up the same JavaScript on every site but changing the URL's?

If you have only three sites, why is it a problem?

Seb.

eru 06-09-2002 05:23 PM

If a surfer goes to site A, but then exits, I want EITHER site B OR C to pop up -- not both.

spanky 06-09-2002 05:49 PM

Quote:

Originally posted by eru
If a surfer goes to site A, but then exits, I want EITHER site B OR C to pop up -- not both.

Code:

sites = Array();
sites[0]="http://server1.com/";
sites[1]="http://server2.com/";

function popExit(){
        window.open(sites[Math.round(Math.random()*(sites.length-1))]);
      }

cheers

eru 06-09-2002 07:43 PM

spanky - can you contact me on ICQ? 2929686. Thanks


All times are GMT -7. The time now is 10:18 PM.

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