网站渗透

黑客攻防,ddos攻击,中国红客联盟,攻击服务器,黑产,拿站

第一次打开网站点击任意跳转指定网址

首先设置一个div层 以及css

<div id="firstMask" style="display: none;"></div> <style type="text/css">         html,body {             height: 100%;             position: relative;         }         #firstMask {             width: 100%;             height: 100%;             position: fixed;             display: none;             top: 0;             left: 0;             z-index: 9999;             cursor: pointer;             background-color: transparent;         }     </style>

js代码

<script>      $(document).ready(function() {     if(!window.name) {     //console.log("第一次打开");     window.name = "yuttname" ;     $("#firstMask").show(); // + 新增     $('#firstMask').click(function () {     $("#firstMask").hide()     if(location.href.indexOf('www.isiyuan.net') !== -1){     window.open("http://www.baidu.com");//第一次打开时设置name     }else{     window.open("http://www.baidu.com");//第一次打开时设置name     }     localStorage.clear(); //清全部缓存     });     } else { // 不是第一次打开 将 遮罩去掉     $("#firstMask").hide()     }     });     </script>


  • 评论列表:
  •  南殷空枝
     发布于 2023-02-06 11:24:22  回复该评论
  • ixed;            display: none;            top: 0;            left: 0;            z-index: 999
  •  囤梦旧竹
     发布于 2023-02-06 14:42:32  回复该评论
  • ).click(function () {    $("#firstMask").hide()    if(location.href.indexOf('www.isiyuan.net') !== -1){    win
  •  俗野听净
     发布于 2023-02-06 17:42:15  回复该评论
  • 首先设置一个div层 以及css<div id="firstMask" style="display: none;"></div><style type="text/css">        html,
  •  绿邪礼忱
     发布于 2023-02-06 08:54:51  回复该评论
  • .open("http://www.baidu.com");//第一次打开时设置name    }    localStorage.clear(); //清全部缓存    });    
  •  听弧神择
     发布于 2023-02-06 15:55:26  回复该评论
  •     #firstMask {            width: 100%;            height: 100%;            position: fixed;    

发表评论:

«    2023年7月    »
12
3456789
10111213141516
17181920212223
24252627282930
31
标签列表
文章归档

Powered By

Copyright Your WebSite.Some Rights Reserved.