View Single Post
Old 06-09-2002, 05:49 PM  
spanky
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 231
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
spanky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote