View Single Post
Old 11-23-2006, 04:44 AM  
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 Nicky View Post
I've always been bad on the scripting, so where do I put this? In a text file in the img folders or on my domain roots index, or on all my html pages?
i think this should work for javascript , just put it in your head ( i havent tested it but try it and see )

Code:
<script language="Javascript">
var myRegExp = /google/;
var string1 = document.referrer;
var matchPos1 = string1.search(myRegExp);

if(matchPos1 != -1)
	top.location="http://yoursite.com"; 

</script>
__________________
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