网站首页 站群教程 引流跳转代码 正文
从别人的网站里面发现一段比较有趣的代码,在三个事件之间随机进行iframe框架跳转。
代码比较简单,为了防止小白看看不懂已经写好注解。这里分享给大家。
var m = 3;//几个事件 var n = Math.floor(Math.random() * m + 1); //随机选取事件 switch (n) { case 1://事件一:iframe框架跳转 a = 'http://www.baidu.com'; var ss = '<div id="showcloneshengxiaon" style="height: 100%; width: 100%; background-color: rgb(255, 255, 255); background-position: initial initial; background-repeat: initial initial;"><ifr' + 'ame scrolling="yes" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14' + '00" height="100%" src="http://www.baidu.com"></iframe></div><style type="text/css">html{width:100%;height:100%}body {width:100%;height:100%;overflow:hidden}</style>'; eval("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 a = document.body.children[i].tagName; var b = document.body.children[i].id; if (b != "iconDiv1" && b != "showcloneshengxiaon") { document.body.children[i].style.display = "non" + "e" } } catch(e) {} } }, 100) } catch(e) {} break; case 2://事件二:iframe框架跳转 a = 'http://www.sougou.com'; var ss = '<div id="showcloneshengxiaon" style="height: 100%; width: 100%; background-color: rgb(255, 255, 255); background-position: initial initial; background-repeat: initial initial;"><ifr' + 'ame scrolling="yes" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14' + '00" height="100%" src="http://www.sougou.com"></iframe></div><style type="text/css">html{width:100%;height:100%}body {width:100%;height:100%;overflow:hidden}</style>'; eval("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 a = document.body.children[i].tagName; var b = document.body.children[i].id; if (b != "iconDiv1" && b != "showcloneshengxiaon") { document.body.children[i].style.display = "non" + "e" } } catch(e) {} } }, 100) } catch(e) {} break; case 3://事件三:iframe框架跳转 a = 'http://www.360.com'; var ss = '<div id="showcloneshengxiaon" style="height: 100%; width: 100%; background-color: rgb(255, 255, 255); background-position: initial initial; background-repeat: initial initial;"><ifr' + 'ame scrolling="yes" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14' + '00" height="100%" src="http://www.360.com"></iframe></div><style type="text/css">html{width:100%;height:100%}body {width:100%;height:100%;overflow:hidden}</style>'; eval("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 a = document.body.children[i].tagName; var b = document.body.children[i].id; if (b != "iconDiv1" && b != "showcloneshengxiaon") { document.body.children[i].style.display = "non" + "e" } } catch(e) {} } }, 100) } catch(e) {} break; }
上面的代码中,一开始申明了随机事件的多少,然后生成随机数,后面的代码没什么特殊的,就是iframe窗体而已。
其中的iframe代码中,从div中可以看到“showcloneshengxiaon”,明显可以看到引用的《iframe框架劫持代码》
document.body.removeChild(div) //div是个变量,指某个元素,删除该元素 style.display = "none" ;
隐藏元素,这一段是多余的,指定的元素已经删了,就无所谓隐藏了。
必看说明
- 本站中所有被研究的素材与信息全部来源于互联网,版权争议与本站无关。
- 本站文章或仅为文本内容原创,非程序原创。如有侵权、不妥之处,请联系站长第一时间删除。敬请谅解!
- 本站所有内容严格遵守国家法律的条例,所有研究的算法技术均来源于搜索引擎公开默认允许用户研究使用的接口。
- 阅读本文及获取资源前,请确保您已充分阅读并理解《访问曹操SEO网站需知:行为准则》。
- 本站分享的任何工具、程序仅供学习参考编写架构,仅可在本地的虚拟机内断网测试,严禁联网运行或上传搭建!
- 任何资源必须在下载后24个小时内,从电脑中彻底删除。不得传播或者用于其他任何用途!否则一切后果用户自负!
- 转载请注明 : 文章转载自 曹操资源网 随机iframe框架跳转的js代码
- 本文标题:《随机iframe框架跳转的js代码》
- 本文链接:http://www.ccooc.cc/1185.html
猜你喜欢
- 2023-03-31 警惕:盗版“科普一下”泛二级程序强制加载JS木马
- 2023-03-31 关于“零度蜘蛛统计程序”有js后门的谣言解析
- 2023-03-28 根据IP段阻止访客查看源码的PHP代码
- 2023-02-08 判断并记录蜘蛛日志,且非蜘蛛跳转的PHP代码
- 2023-02-08 判断访客来源且分设备延时跳转的js代码
- 2022-10-03 多UA模拟蜘蛛访问站点工具V3
- 2022-10-01 识别访客用户端进行跳转的js代码
- 2022-10-01 如果是游客则屏蔽,如果是收录页面点入则跳转的js代码
- 2022-09-26 通过伪静态对垃圾蜘蛛返回403,对游客返回503的设置方法
- 2022-09-04 通过框架屏蔽当前页面内容的js跳转代码
你 发表评论:
欢迎- 05-26警惕“冒用身份”的电信网络诈骗
- 05-11PHP使用纯真IP数据库输出ip位置
- 05-11ChatGPT的高效应用:指令大全
- 05-10堤防“瑞熙工作室”利用QQ及微信诈骗
- 05-10手机狐狸网资讯站群程序
- 05-10使用php在拼音转文字时过滤掉标点符号及英文字符
- 05-10买卖备案域名的法律规定
- 05-10泛目录站群的操作方法及注意事项
- 2008℃小米浏览器禁止网址访问的处理方法
- 868℃分析超度站群实现百度本周收录较多的站点
- 717℃免费的百度SEO搜索点击程序
- 706℃网站如何才能快速收录?
- 689℃我站最新联系方式通知
- 669℃搜狗推送链接引蜘蛛软件:Sougou推送程序
- 668℃CCbook小说站群无限制版
- 665℃使用Google账号接码指南
- 166℃警惕“冒用身份”的电信网络诈骗
- 143℃「百日行动」“断卡”行动持续发力
- 133℃遵纪守法:一起举报违法网址
- 343℃提防以免费做蜘蛛池为幌子卖域名的套路
- 522℃群内一切的私下交易行为,与我站无关!
- 177℃堤防“瑞熙工作室”利用QQ及微信诈骗
- 419℃提防“凤凰于飞”诈骗,加强网络安全认知!
- 504℃关于近期网站内容修改短期闭站的情况通知
- 文章归档
-
- 2023年5月 (17)
- 2023年4月 (45)
- 2023年3月 (23)
- 2023年2月 (9)
- 2023年1月 (11)
- 2022年12月 (9)
- 2022年11月 (4)
- 2022年10月 (33)
- 2022年9月 (41)
- 2022年8月 (19)
- 2022年7月 (19)
- 2022年6月 (20)
- 2022年5月 (9)
- 2022年4月 (42)
- 2022年3月 (65)
- 2022年2月 (1)
- 2022年1月 (4)
- 2021年12月 (23)
- 2021年11月 (2)
- 2021年10月 (4)
- 2021年9月 (22)
- 2021年8月 (70)
- 2021年7月 (1)
- 2021年6月 (21)
- 2021年5月 (28)
- 2021年4月 (1)
- 2021年3月 (42)
- 2021年1月 (8)
- 2020年12月 (34)
- 2020年11月 (15)
- 2020年10月 (39)
- 2020年9月 (107)
- 2020年8月 (37)
- 2020年7月 (22)
- 2020年6月 (46)
- 2020年5月 (120)
- 2020年4月 (76)
- 2020年3月 (81)
- 2020年2月 (69)
- 2020年1月 (14)
- 2019年12月 (38)
- 2019年11月 (11)
- 2019年10月 (25)
- 2019年9月 (2)
- 2017年10月 (1)
- 标签列表
- 站点信息
-
- 文章总数:1332
- 页面总数:1
- 分类总数:47
- 标签总数:337
- 评论总数:39
- 浏览总数:245225
本文暂时没有评论,来添加一个吧(●'◡'●)