View Single Post
Old 12-28-2005, 01:16 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by BV
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var refarray = new Array();
refarray['excite.com'] = "http://www.domain.com?from=excite";
refarray['google.com'] = "http://www.domain.com?from=google";
refarray['yahoo.com'] = "http://www.domain.com?from=yahoo";
refarray['altavista.com'] = "http://www.domain.com?from=altavista";
refarray['alltheweb.com'] = "http://www.domain.com?from=alltheweb";
refarray['msn.com'] = "http://www.domain.com?from=msn";
refarray['lycos.com'] = "http://www.domain.com?from=lycos";
refarray['infoseek.com'] = "http://www.domain.com?from=infoseek";
for (var i in refarray) {
if (document.referrer.indexOf(i) != -1) window.location.replace(refarray[i]);
}
// End -->
</script>

good code , might wanna change the window.location.replace to top so it works for frames
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote