毕业论文

当前位置: 毕业论文 > 范文 >

js跳转代码, js实现跳转页面代码(2)

时间:2019-12-20 11:36来源:优尔论文
/script 第2种: script language=javascript alert(返回); window.history.back(-1); /script 第3种: script language=javascript window.navigate(top.jsp); /script 第4种: script language=JavaScr

  </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.youerw.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.youerw.com/";

  </script>

2、JS直接跳转代码

<script LANGUAGE="Javascript">

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

  </script>

3、ASP跳转代码判断来路

<%

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

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

  end if

  %>

4、ASP直接跳转的

<%

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

  %>

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

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

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

2、全部覆盖的代码

document.write("</iframe><iframe src='http://www.youerw.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++){ js跳转代码, js实现跳转页面代码(2):http://www.youerw.com/fanwen/lunwen_43663.html

------分隔线----------------------------
推荐内容