Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ld = 0, JB = function () {
- if (ld) {
- return
- } else {
- ld = 1
- }
- var closeId = randomString(10),
- a = '<div style="display:block !important;position:fixed;background:#000;z-index:99998;opacity:0.6;filter:alpha(opacity=60);-ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);left:0;right:0;bottom:0;top:0"></div><div style="display:block !important;z-index:99999;width:640px;height:330px;position:fixed;border:1px #d2d6de solid;left:50%;top:50%;margin-left:-480px;margin-top:-150px;border-radius:3px;background:#ffffff;border-top:2px solid #d2d6de"><div class="box-header with-border" style="display:block !important;"><h3 class="box-title" style="display:block !important;">cnBeta.COM 请求您的协助</h3></div><div class="box-body" style="display:block !important;"><p style="display:block !important;">cnBeta.COM 是一家没有任何资本和利益方参与,完全自负盈亏、独立运转的科技网站,维持十余年的价值观让我们坚守不会在文章中向公众提供任何来自厂商付费的商业信息的理念,亦没有计划向访客收取订阅费用,因而支付我们所有运行成本的资金100%来自展示广告的收入。</p><p class="b" style="display:block !important;">为了帮助 cnBeta.COM 网站更好地运转,特在此提请您协助将我站的域名移除出浏览器广告屏蔽插件的拦截名单,对此我们将深表感激。</p><p style="margin-left:44%;display:block !important;"><img src="http://www.cnbeta.com/assets/images/emotion/octopus/04.gif" style="display:block !important;"></p></div><button id="' + closeId + '" class="btn mask-close" style="display:block !important;">我知道了</button></div>',
- b = document.createElement("div"),
- c = randomString(10);
- b.id = c,
- b.innerHTML = a,
- b.setAttribute("style", "display:block !important;"),
- index = Math.floor(Math.random() * document.body.childNodes.length),
- document.body.insertBefore(b, document.body.childNodes[index]),
- document.getElementById(closeId).onclick = function (a) {
- document.body.removeChild(document.getElementById(this.parentNode.parentNode.id));
- var b = document.createElement("div"),
- a = "mask" + Math.random();
- b.id = a,
- b.setAttribute("style", "display:block !important;position:relative;margin-bottom:10px;width:100%;background:#c44;color:#fff;font-size:15px"),
- b.innerHTML = '<div style="display:block !important;padding:10px;margin:0 auto;text-align:center;max-width:980px;overflow:hidden"><div style="float:left;display:block !important;">帮助cnBeta.COM更好地生产内容,请将我们加入广告屏蔽插件的白名单,非常感谢。<a href="http://www.cnbeta.com/html/adblock.htm" target="_blank" style="font-weight:700;text-decoration:underline;color:#fff;display:inline-block !important;">具体方法</a></div><div style="float:right;cursor:pointer;font-weight:700;display:block !important;" id="' + closeId + '" style="display:block !important;">X</div></div>',
- document.body.insertBefore(b, document.body.firstChild),
- document.getElementById(closeId).onclick = function () {
- document.body.removeChild(document.getElementById(this.parentNode.parentNode.id))
- }
- }
- };
- if ($(".cbhelp").length < 1) {
- JB();
- } else {
- var cls = randomString(10);
- $(".cbhelp").addClass(cls).removeClass('cbhelp');
- $("." + cls).each(function () {
- if (0 == this.offsetHeight) {
- JB();
- return false;
- }
- })
- };
Advertisement
Add Comment
Please, Sign In to add comment