Home > Web Front-end > JS Tutorial > body text

Many people use the following js to refresh the site IP and PV_javascript techniques

WBOY
Release: 2016-05-16 19:01:27
Original
1179 people have browsed it

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. !

Copy code The code is as follows:

<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>

Related labels:
js
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template