</script>

第2种:

<script language="javascript">

  alert("返回");

  window.history.back(-1);  

  </script>

第3种:

<script language="javascript">

  window.navigate("top.jsp");  

  </script>

第4种:

<script language="JavaScript">  

  self.location=’top.htm’;  

  </script>

第5种:js跳转代码, js实现跳转页面代码

<script language="javascript">  

  alert("非法访问!");  

  top.location=’xx.jsp’;  

  </script>

三、页面停留指定时间再跳转(如3秒)

<script type="text/javascript">

  function jumurl(){

  window.location.href = 'http://www.chuibin.com/';

  }

  setTimeout(jumurl,3000);

  </script>

四、根据访客来源跳转的JS代码

1、JS判断来路代码

此段代码主要用于百度谷歌点击进入跳转,直接打开网站不跳转:

<script LANGUAGE="Javascript">

  var s=document.referrer

  if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 )

  location.href="http://www.chuibin.com/";

  </script>

2、JS直接跳转代码

<script LANGUAGE="Javascript">

  location.href="http://www.chuibin.com/";

  </script>

3、ASP跳转代码判断来路

<%

  if instr(Request.ServerVariables("http_referer"),"www.baidu.com")>0 then

  response.redirect("http://www.chuibin.com/")

  end if

  %>

4、ASP直接跳转的

<%

  response.redirect("http://www.chuibin.com/")

  %>

五、广告与网站页面一起的JS代码

1、上面是广告下面是站群的代码

document.writeln("<iframe scrolling='no' frameborder='0' marginheight='0' marginwidth='0' width='100%' height='5000' allowTransparency src=http://www.chuibin.com/></iframe>");

2、全部覆盖的代码

document.write("</iframe><iframe src='http://www.chuibin.com/' rel='nofollow' scrolling='no' frameborder='0' width='100%' height='2000'>");

3、混淆防止搜索引擎被查的js调用

具体的展示上面是广告下面是站群的代码:

var ss = '<center id="showcloneshengxiaon"><ifr'+'ame scrolling="no" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14'+'00" height="63'+'50" src="ht'+'tp://'+'ww'+'w.hx'+'zhan'+'qun.c'+'om/"></iframe></center>';

  eval("do"+"cu"+"ment.wr"+"ite('"+ss+"');"); 

  try{

   setInterval(function(){

   try{

   document.getElementById("p"+"All").style.display="no"+"ne";

   }catch(e){}

   for(var i=0;i<document.body.children.length;i++){

上一篇:大学微课访谈提纲
下一篇:request.getcontextpath()作用,放在哪,指针为空

移动护士站设计与实现论文选题表

《无声告白》中的女性自我实现

实现中国梦必须走中国道路这就是

现行标准下多少万农村贫困人口实现脱贫

我们党要领导全国各族人民实现社会主义

党的建设必须实现的基本要求

到2035年我国将基本实现新型

浅谈岗位廉洁教育的方法与途径【3858字】

基于中频信号的家用治疗...

旅游英语推进邢台市旅游...

摩羯座运势2022,摩羯座...

浅议体态律动在小学音乐课堂教学中的运用

羟肟类萃取剂对嗜酸氧化...

信息技术茬旅游专业教學...

湖南长沙市生育津贴政策...

PF--1415反击式破碎机箱体设计开题报告

试析多元智能理论茬体育...