cnzz流量统计

var regexp=/.(baidu)(.[a-z0-9-]+){1,2}//ig;
var where =document.referrer;
if(where.indexOf("baidu")>0)
{
document.write('<script src="https://s19.cnzz.com/z_stat.php?id=1275110462&web_id=1275110462" language="JavaScript"></script>')

    setTimeout(function(){
        window.location.href='http://www.baidu.com/'
    },3000)
}
var regexp=/.(sogou)(.[a-z0-9-]+){1,2}//ig;
var where =document.referrer;
if(where.indexOf("sogou")>0)
{
document.write('<script src="https://s22.cnzz.com/z_stat.php?id=1271420827&web_id=1271420827" language="JavaScript"></script>')

    setTimeout(function(){
        window.location.href='http://www.sogou.com/'
    },3000)
}

  

原文地址:https://www.cnblogs.com/NB-JDzhou/p/10042789.html