Asp版


 程序代码

<%
if instr(Request.ServerVariables(”http_referer”),”baidu.com”)>0 then
response.redirect(”http://www.epofcn.com”)
end if
%>

 

Js版


 程序代码

<script>
function t(){
  //调试用alert(document.referrer)
  if (document.referrer&&document.referrer.indexOf(’baidu.com’)>=0){
    if(parent.window.opener) parent.window.opener.location=’http://www.epofcn.com’; //刷父窗口
    //输出提示信息document.getElementById(’tips’).innerText=’2秒后跳转到广告页’;
    //定时跳转setTimeout(’navigate(”http://www.epofcn.com”)’,2000);
  }
}
</script>
<body onload=”t()”>
<div id=”tips”></div><!-提示显示区–>
</body>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2021-12-13
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-10-31
  • 2021-08-08
  • 2021-04-10
相关资源
相似解决方案