zoukankan      html  css  js  c++  java
  • IE中实现全屏广告

    <script>
    var w1=window.createPopup()
    document.write("<OBJECT classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 onreadystatechange=if(this.readyState==4)this.Click() id=HHCtrl_Object1><PARAM name=Command value=minimize></OBJECT>")
    w1.document.body.oncontextmenu=w1.document.body.onselectstart=function(){return false}
    w1.document.body.innerHTML="<table bgcolor=black width=100% height=100%><tr><td align=center style=color:white;font-weight:bold;font-size:75px;cursor:default>IE超大屏幕广告</td></table>"
    w1.show(0,0,screen.width,screen.height)
    </script>


    只能强行关闭浏览器.活活...
    (PS:去掉this.Click()就可以关闭了)

    下面这段也是一样

    <script>
    var w1=window.createPopup()
    w1.document.body.innerHTML="<table bgcolor=black width=100% height=100%><tr><td align=center style=color:white;font-weight:bold;font-size:75px;cursor:default>IE超大屏幕广告</td></table>"
    w1.show(0,0,screen.width,screen.height)
    </script>
  • 相关阅读:
    zabbix监控nginx的性能
    常用iptables命令
    shell脚本小示例
    打印菜单脚本
    ping主机脚本
    Linux网络配置脚本
    多磁盘自动分区自动挂载脚本
    深入js系列-类型(null)
    深入js系列-类型(开篇)
    first-child、last-child误解
  • 原文地址:https://www.cnblogs.com/MaxIE/p/569983.html
Copyright © 2011-2022 走看看