×

dfp popup content in iframe

Falcon 2021-03-26 views:
自动摘要

正在生成中……

<script id="popupAdTmpl" type="text/template">
  <style type="text/css">
    #popupAd {
      position: fixed;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.7);
    }
    #popupAd .close {
      width: 44px;
      top: 0px;
      right: 0px;
      cursor:pointer;
      position: absolute;
    }
    #popupAd .ad {
      top:50%;
      left:50%;
      max-width: 320px;
      max-height: 480px;
      position:absolute;
      transform:translate(-50%,-50%);
    }
  </style>
  <img
    class="close"
  src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAhySURBVHja7N3dT5NZHsDxLw/vDBW3KIiUzgwyzrCutAVWZobdHbRqNPFmEy+ILzcmXPsHIIk3xps18c7ExCtNDOuFNwZvG2iyEWeWCcyw6KzOwJZXpYWR0pEW2IvzdIZ1QQp9nqd9DueXNESkCOfjeXnO+Z1zcoCbQDEqpAxNFYH8wG9VMcgNnFDFIDdwTBWD3MBRVQxyAy+qYpAbeF4Vg2qiVagmWkW2Ar9RxSA38GtVDApYhY2BfwbiqijkBUbVYvmBw6oo5AaeUUUhN/C4KgoFrMKGkat/XAROy/yLNjc37/L7/eXRaDQRiUQytgZ+4sQJZ2Nj467p6emlWCy2Yva/l6d/fKuPpPfIBltUVKTdvn27sbW11Q2QSCSWb926NXjz5s0frfw53G530Z07d1pqa2vLAebm5mJdXV1Pe3p6XltRgwE+A/bJhnvv3r2WI0eOuH7tkzRNa2lpqSopKYkHg8GwVbjd3d1/drlcu9f8bPknT550jY2NhZ89e7ZoBfA+4KBsuD6fr2q9v29qaqq0AjmJW1FR4fi/AZCmacePH3eFQqHIyMhI1GzgQuDITsC1Cvl9uGuR/X5/tVnIa4FjwEnbjxpzc3Pu37//+Wa4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ZsCDuMMiXwHLG3nApzq0lwxkgSpga8OJSCmqRWSdVCtg+ZvzWv1Vo4PvUcByR6EOXa2P0p2IC7lrFLD8sQuxKb4aMQu5h98uBnW/87U1gPbfAQAusSZMjNgHegAAAABJRU5ErkJggg=="
  />
  <IFRAME class="ad" SRC="https://ad.doubleclick.net/ddm/adi/N1118900.3653174MINGWATCH/B25405850.298814355;sz=320x480;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_755}?" WIDTH=320 HEIGHT=480 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR='#000000'>
    <SCRIPT language='JavaScript1.1' SRC="https://ad.doubleclick.net/ddm/adj/N1118900.3653174MINGWATCH/B25405850.298814355;abr=!ie;sz=320x480;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_755}?">
    </SCRIPT>
    </IFRAME>

</script>
<script type="text/javascript">
  var d = window.top.document;
  var m = d.createElement("div");
  m.setAttribute('id', 'popupAd');
  m.innerHTML = document.getElementById('popupAdTmpl').innerHTML;
  var adEle = m.getElementsByClassName('ad')[0];
  var closeEle = m.getElementsByClassName('close')[0];
  closeEle.addEventListener('click', function(){
    m.remove();
  });
  d.body.appendChild(m);
</script>
本文收录于