View Single Post
Old 11-23-2006, 05:59 AM  
Nicky
Too lazy to set a custom title
 
Nicky's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,070
Quote:
Originally Posted by SmokeyTheBear View Post
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>
Thanks, and this would be in the head tag of the html page with the thumbnails?
__________________

gfynicky @ gmail.com
Nicky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote