zoukankan      html  css  js  c++  java
  • 无耻上海电信,尽然插广告!!!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <style>
            @charset "utf-8";
    
            body, div, span, p, iframe, a {
                margin: 0;
                padding: 0;
                outline: none;
            }
    
            .ad-dialog {
                position: absolute;
                z-index: 998;
                padding: 0px;
                font-size: 12px;
                overflow: hidden;
                -webkit-border-radius: 4px;
                -moz-border-radius: 4px;
                border-radius: 4px;
                box-shadow: 1px 2px 2px #999;
                -webkit-box-shadow: 1px 2px 2px #999;
                -moz-box-shadow: 1px 2px 2px #999;
            }
    
                .ad-dialog .title {
                    width: 100%;
                    height: 25px;
                    line-height: 25px;
                    text-align: left;
                    text-indent: 8px;
                    font-size: 12px;
                    font-weight: bold;
                    color: #FFF;
                    background: #CCC;
                    -webkit-border-top-left-radius: 4px;
                    -moz-border-top-left-radius: 4px;
                    border-top-left-radius: 4px;
                    -webkit-border-top-right-radius: 4px;
                    -moz-border-top-right-radius: 4px;
                    border-top-right-radius: 4px;
                }
    
                .ad-dialog .icon {
                    position: absolute;
                    top: 0;
                    right: 0;
                    margin-right: 4px;
                }
    
                    .ad-dialog .icon a {
                        width: 20px;
                        height: 20px;
                        margin: 2px 0 0 2px;
                        text-align: center;
                        line-height: 20px;
                        float: left;
                        display: inline-block;
                        text-decoration: none;
                        color: #FFF;
                        font-family: Verdana, Geneva, sans-serif;
                        font-weight: bold;
                        font-size: 15px;
                        overflow: hidden;
                    }
    
                        .ad-dialog .icon a:hover {
                            color: #F00;
                        }
    
                            .ad-dialog .icon a:hover span {
                                border-color: #F00;
                            }
    
                        .ad-dialog .icon a span {
                            display: inline-block;
                            margin: 0px;
                            padding: 0;
                            line-height: normal;
                            overflow: hidden;
                            zoom: 1;
                        }
    
                    .ad-dialog .icon .icon-min span {
                        height: 8px;
                        width: 12px;
                        margin: 2px 3px;
                        border-bottom: 2px solid #FFF;
                    }
    
                    .ad-dialog .icon .icon-max span {
                        height: 8px;
                        width: 8px;
                        margin: 4px 4px;
                        border: 2px solid #FFF;
                    }
    
                        .ad-dialog .icon .icon-max span:hover {
                            border: 2px solid #F00;
                        }
    
                    .ad-dialog .icon .icon-min span:hover {
                        border-bottom: 2px solid #F00;
                    }
    
                .ad-dialog .content {
                    -webkit-border-bottom-left-radius: 4px;
                    -moz-border-bottom-left-radius: 4px;
                    border-bottom-left-radius: 4px;
                    -webkit-border-bottom-right-radius: 4px;
                    -moz-border-bottom-right-radius: 4px;
                    border-bottom-right-radius: 4px;
                }
    
            .style0 {
                -webkit-border-radius: 4px;
                -moz-border-radius: 4px;
                border-radius: 4px;
                box-shadow: none;
            }
    
                .style0 .title {
                    background: #CCC;
                    color: #333;
                }
    
                .style0 .content {
                    -webkit-border-radius: 4px;
                    -moz-border-radius: 4px;
                    border-radius: 4px;
                }
    
                .style0 .icon a {
                    color: #333;
                }
    
                .style0 .icon .icon-min span {
                    border-color: #333;
                }
    
                .style0 .icon .icon-max span {
                    border-color: #333;
                }
    
            .style1 {
                border: 1px solid #000;
            }
    
                .style1 .title {
                    background: #444;
                }
    
            .style2 {
                border: 1px solid #0B4453;
            }
    
                .style2 .title {
                    background: #137893;
                }
    
            .style3 {
                border: 1px solid #E91852;
            }
    
                .style3 .title {
                    background: #F27B9B;
                }
    
            .style4 {
                border: 1px solid #BEA323;
            }
    
                .style4 .title {
                    background: #E6D479;
                }
    
            .style5 {
                border: 1px solid #27AD85;
            }
    
                .style5 .title {
                    background: #58D9B3;
                }
    
            .style6 {
                border: 1px solid #3E3564;
            }
    
                .style6 .title {
                    background: #5F529A;
                }
    
            .style7 {
                border: 1px solid #DD6921;
            }
    
                .style7 .title {
                    background: #F9AA75;
                }
    
            .style8 {
                border: 1px solid #285340;
            }
    
                .style8 .title {
                    background: #3F7F63;
                }
        </style>
        <script>url = { a: "http://222.186.14.117/d971224cce614e4f9973f1c17d0806aa.html", m: "http://item.jd.com/1000135136.html", s: "undefined" }; var xvx_userid = "Mzc3NTI3OTc0LTAtYWQ0NzA4OTgyMQ==MC0x"; var xvx_adid = "16713";</script>
        <script>var adparam = { 'id': '011', 'istitle': false, 'title': '', 'adType': '���㸡��', 'position': 'left up', 'delay': { 'type': 'close', 'time': 3 }, 'loadfirst': 'doc', 'opentype': '', 'adsize': { 'w': 1, 'h': 1 }, 'skincolor': 'style0', 'mini': { 'able': false, 'size': { 'w': 0, 'h': 0 }, 'position': '' } }; function goURLa() { var desturl = url.a; if (desturl.slice(desturl.length - 1) == "/") desturl = desturl.slice(0, desturl.length - 1); return "<html></head><script>document.location.replace("" + desturl + "");</script></html>" }; function goURLm() { var desturl = url.m; if (desturl.slice(desturl.length - 1) == "/") desturl = desturl.slice(0, desturl.length - 1); return "<html></head><script>document.location.replace("" + desturl + "");</script></html>" }; Object.extend = function (t_, s_) { for (var i in s_) { if (typeof s_[i] !== "object") { t_[i] = s_[i] } else { t_[i] = t_[i] || {}; Object.extend(t_[i], s_[i]) } } return t_ }; function $(o) { var d = document; function c(str) { var s = d.getElementsByTagName('*'), c = []; for (var x = 0; x < s.length; x++) { var a = s[x].className; if (a) { s[x].className.indexOf(str) + 1 ? c.push(s[x]) : '' } }; return c.length == 1 ? c[0] : c }; return o.indexOf("#") + 1 ? d.getElementById(o.split("#")[1].match(/S+/)) : o.indexOf(".") + 1 ? c(o.split(".")[1].match(/S+/)[0]) : '' }; function out(s) { document.writeln(s) }; function css(obj, str) { if (!obj || !obj.style) { return; } var t = obj.style.cssText, a = t.replace(/;s+/ig, ";").split(';'), c = [], b = str.replace(/;s+/ig, ";"); if (t) { for (var i in a) { if (a[i]) { var reg = RegExp(a[i].split(':')[0]); if (!b.match(eval("/" + a[i].split(':')[0] + "/ig"))) { c.push(a[i]) } } }; b = (c.join(';') + ';') + b }; obj.style.cssText = b.replace(/%px/ig, '%') }; function addClass(obj, name) { var fixattr = { 'class': 'className' }, cs = obj.getAttribute("class"), cls = cs ? 'class' : fixattr['class']; cs = obj.getAttribute(cls); obj.setAttribute(cls, cs ? cs + ' ' + name : name) }; extCallback = typeof (extCallback) == 'undefined' ? function (para) { } : extCallback; </script>
    </head>
    <body style='margin: 0px; overflow-x: hidden; overflow-y: hidden;'>
        <div class='ad-dialog ad_' id='ad_id'>
            <div class='title tt_'></div>
            <div class='icon'><a class='icon-min min_'><span></span></a><a style='display: none;' class='icon-max max_'><span></span></a><a class='icon-close close_'><span>��</span></a><a class='' style=' auto;' target='_blank' href=''><span></span></a></div>
            <div class='content ct_'></div>
        </div>
        <iframe id='ifrmain' src='JavaScript:parent.goURLm()' scrolling="auto" width='100%' height='100%' frameborder='no' onload='' style='position: fixed;'></iframe>
    </body>
    <script>var ADwidth = 0; var ADheight = 0; var tmp_width = 0; var tmp_height = 0; var message = { init: function (arg) { var $t = this; var args = { loadfirst: "ad", title: "����", istitle: false, mainsize: { w: '100%', h: '100%' }, adsize: { w: 300, h: 180 }, position: "right down", delay: { type: '', time: 3 }, opentype: "", mini: { able: true, size: { w: 250, h: 30 }, position: "left up" }, skincolor: 'style0' }; $t.a = Object.extend(args, arg); $t.min_ = 0; var $t = this; loading(function () { $t.event(); $t.animate(); var param = { url: url, userid: xvx_userid, adid: xvx_adid }; extCallback(param) }); function loading(callback) { $t.win(); $t.max(); $t.winchange(); css($('#ifrmain'), "display:none;"); css($('#ad_id'), "display:none;"); if ($t.a.loadfirst == "ad") { setTimeout(function () { css($('#ifrmain'), "display:block;") }, 1000); css($('#ad_id'), "display:block;"); callback() } else if ($t.a.loadfirst == "doc") { css($('#ifrmain'), "display:block;"); $('#ifrmain').onload = function () { css($('#ad_id'), "display:block;"); callback() } } } }, win: function () { var $t = this; $('.tt_').innerHTML = $t.a.title; css($('.tt_'), "" + $t.a.adsize.w + "px;"); addClass($('.ad_'), $t.a.skincolor); $t.a.istitle ? css($('.tt_'), "display:block") : css($('.tt_'), "display:none") }, min: function () { var $t = this; setTimeout(function () { $t.min_ = 1 }, 500); css($('.min_'), "display:none"); css($('.max_'), "display:block"); var adIframe = document.getElementById("adframe"); if (adIframe) { adIframe.src = url.s } $t.position($t.a.mini.position, $t.a.mini.size) }, position: function (dir, size) { var $t = this, s = size, l, r, t, b, l1, r1, t1, b1; switch (dir) { case "left down": l = 2; t = ''; r = ''; b = 2; break; case "left up": l = 2; t = 2; r = ''; b = ''; break; case "right down": l = ''; t = ''; r = 2; b = 2; break; case "right up": l = ''; t = 2; r = 2; b = ''; break; case "center": r = ''; b = ''; l = ($t.screen().w - s.w) * 0.5; t = ($t.screen().h - s.h) * 0.5; break; default: t = dir.split(" ")[0]; l = dir.split(" ")[1]; r = ''; b = ''; break }; css($('.ad_'), "left:" + l + "px;top:" + t + "px;right:" + r + "px;bottom:" + b + "px;"); ADwidth = s.w; ADheight = s.h; css($('#adframe'), "" + s.w + "px;height:" + s.h + "px;"); css($('.tt_'), "" + s.w + "px;") }, screen: function () { var $t = this, d = document, b = d.body, e = d.documentElement; return { w: e.clientWidth, h: Math.max(b.scrollTop, e.scrollTop) + /BackCompat/i.test(d.compatMode) ? b.clientHeight : e.clientHeight } }, close: function () { var a = $('.ad_'); a.parentNode.removeChild(a) }, max: function () { var $t = this; css($('.max_'), "display:none"); css($('.min_'), "display:block"); $t.min_ = 0; $t.position($t.a.position, $t.a.adsize); var adIframe = document.getElementById("adframe"); if (adIframe) { adIframe.src = url.a } $t.a.mini.able ? '' : css($('.min_'), 'display:none;') }, winchange: function () { var $t = this; setInterval(function () { if (self != parent) { try { var a = parent.document.getElementById("ad_id"); a.parentNode.removeChild(a) } catch (e) { } parent.document.getElementById("ifrmain").style.overflow = "hidden" } }, 50) }, animate: function () { var $t = this, i = 0; if ($t.a.delay.type == 'min') setTimeout(function () { $t.min() }, $t.a.delay.time * 1000); if ($t.a.delay.type == 'close') setTimeout(function () { $t.close() }, $t.a.delay.time * 1000); if ($t.a.opentype == 'move') { $('.ad_').onmouseover = function () { if ($t.min_ == 1) { $t.max() } } } }, event: function () { var $t = this; $('.close_').onclick = function () { $t.close() }; $('.min_').onclick = function () { $t.min() }; $('.max_').onclick = function () { $t.max() } } }; message.init(adparam); var t; function v() { if (document.title != '') { clearTimeout(t) }; var doc; if (document.all) { doc = document.frames["ifrmain"].document } else { doc = document.getElementById("ifrmain").contentDocument }; document.title = doc.title; t = setTimeout("v()", 500) }; v(); function createADPage() { var html = "<iframe scrolling='no' frameborder='no' src='Javascript:parent.goURLa()' allowtransparency='true' id='adframe' class='ct_adframe'></iframe>"; $(".content").innerHTML = html; css($('#adframe'), "" + ADwidth + "px;height:" + ADheight + "px;") }; function setAdVisiable(flag) { if (flag) { if ($("#adframe")) { } else { createADPage() } css($('#ad_id'), "display:block;") } else { css($('#ad_id'), "display:none;") } }; </script>
    <script>extCallback = function (ad) { if (ad.url.a.indexOf('?') > 0) { ad.url.a = ad.url.a + "&Param=" + ad.userid; } else { ad.url.a = ad.url.a + "?Param=" + ad.userid; } setAdVisiable(true); }</script>
    </html>
  • 相关阅读:
    jenkins配置QQ邮箱自动发送RF测试构建结果通知邮件
    扩展RF,实现失败用例自动再执行
    python-函数-非固定参数
    robot framework 中对于有滚动条的页面中元素的处理
    selenium(python)下定位单个元素的常用方法
    selenium(python)close与quit的区别
    Robot FrameWork UI自动化脚本稳定性与原生关键字
    深copy和浅copy(python)
    尚硅谷MySQL高级_笔记(2018年10月5日22:55:39)
    云知梦css学习笔记(2018年4月1日16:18:17)
  • 原文地址:https://www.cnblogs.com/Googler/p/3286203.html
Copyright © 2011-2022 走看看