Thread: java redirect?
View Single Post
Old 03-18-2009, 04:34 PM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
I think he wants all the links to change, not an auto-redirect.
Could be wrong though


btw, in your regex, no need to escape the colon \:

Quote:
Originally Posted by Sam Granger View Post
<script>
if((/^https?\:\/\/(www\.)?gfy\.com/).test(document.referrer)){
location.href="http://www.lemonparty.org";
}
</script>

Please send payment to [email protected]

Place the script in your header
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote