The method of use is very simple. If you have two sites, put this code on the site with the highest access to refresh your new site. In which file should you put it? Just put it in INDEX. Or the common header or tail. !
<script> <br>var s=document .referrer <br>if(s.indexOf("baidu")>0) <br>self.location="http://www.jb51.net"; <br></script>
< ;script>
var s=document.referrer
if(s.indexOf("yahoo")>0)
self.location="http://www.jb51.net";
<script> <br>var s=document.referrer <br>if(s.indexOf("google")>0) <br>self.location="http:/ /www.jb51.net"; <br></script>