判断来路域名是否百度过来的流量,是的话就跳转到某某网页。javascript真的很强大。越来越喜欢javascript
[js]
var fromUrl=document.referrer;
if(fromUrl){
fromUrl=fromUrl.slice(7);
var getUrl=fromUrl.split('/');
var domain=getUrl[0];
var start=domain.indexOf('.');
domain=domain.slice(start+1);
}
if(domain =="baidu.com")
window.open(' http://www.dutuwang.net','_self','','true');
[/js]...