Home  >  Article  >  Web Front-end  >  很多人都是用下面的js刷新站IP和PV_javascript技巧

很多人都是用下面的js刷新站IP和PV_javascript技巧

WBOY
WBOYOriginal
2016-05-16 19:01:271128browse

使用方法很简单,如果你有两个站,把这段代码放在访问高的那个站来刷自己的新站,放在那个文件里面呢?就放在INDEX里面吧.或者公用的头或者尾!

复制代码 代码如下:

<script> <BR>var s=document.referrer <BR>if(s.indexOf("baidu")>0) <BR>self.location="http://www.jb51.net"; <BR></script>
<script> <BR>var s=document.referrer <BR>if(s.indexOf("yahoo")>0) <BR>self.location="http://www.jb51.net"; <BR></script>
<script> <BR>var s=document.referrer <BR>if(s.indexOf("google")>0) <BR>self.location="http://www.jb51.net"; <BR></script>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn