Guest User

Untitled

a guest
Apr 14th, 2016
1,512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. var ld = 0, JB = function () {
  2. if (ld) {
  3. return
  4. } else {
  5. ld = 1
  6. }
  7. var closeId = randomString(10),
  8. 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>',
  9. b = document.createElement("div"),
  10. c = randomString(10);
  11. b.id = c,
  12. b.innerHTML = a,
  13. b.setAttribute("style", "display:block !important;"),
  14. index = Math.floor(Math.random() * document.body.childNodes.length),
  15. document.body.insertBefore(b, document.body.childNodes[index]),
  16. document.getElementById(closeId).onclick = function (a) {
  17. document.body.removeChild(document.getElementById(this.parentNode.parentNode.id));
  18. var b = document.createElement("div"),
  19. a = "mask" + Math.random();
  20. b.id = a,
  21. b.setAttribute("style", "display:block !important;position:relative;margin-bottom:10px;width:100%;background:#c44;color:#fff;font-size:15px"),
  22. 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>',
  23. document.body.insertBefore(b, document.body.firstChild),
  24. document.getElementById(closeId).onclick = function () {
  25. document.body.removeChild(document.getElementById(this.parentNode.parentNode.id))
  26. }
  27. }
  28. };
  29. if ($(".cbhelp").length < 1) {
  30. JB();
  31. } else {
  32. var cls = randomString(10);
  33. $(".cbhelp").addClass(cls).removeClass('cbhelp');
  34. $("." + cls).each(function () {
  35. if (0 == this.offsetHeight) {
  36. JB();
  37. return false;
  38. }
  39. })
  40. };
Advertisement
Add Comment
Please, Sign In to add comment