frameset html5代替的問題,透過圖書和論文來找解法和答案更準確安心。 我們找到下列特價商品、必買資訊和推薦清單

另外網站HTML5

'; let timer = setInterval(function () { let dom = wt.document.getElementById("ad2mpbIframe"); if ( dom ) { clearInterval(timer); gadfif(dom,s); } }, 100); }; function setParentWH (w,h,bcenter,l1){ var iframe = window.frameElement; if(!iframe){return;}; iframe.width = w; iframe.height = h; iframe.style.width = w + "px"; iframe.style.height = h + "px"; if(l1)return; iframeParent = iframe.parentNode.parentNode; iframeParent.style.width = w + "px"; iframeParent.style.height = h + "px"; iframeParent.style.margin = "0 auto"; if (bcenter) { iframeParent.style.width = "100%"; iframeParent.style.textAlign = "center"; iframe.parentNode.style.display= "inline-block"; }; }; function cindex (n1,n2) { var zdom = document.querySelectorAll(n1); if(zdom.length> 0 ){ for (var i = 0; i < zdom.length; i++) { zdom[i].style.zIndex = n2; }; }; }; function runAD2(){ box.innerHTML=""; var wt = window.top; wt.callbackAD2Crazy = function (){ window.setTimeout(function(){loadJS(fa_src, true, 'ypa');},300); }; var s = wt.document.createElement('script'); s.id = 'MediaCrazy-AD2'; s.src = 'https://content.ad2iction.com/mediascroll/crazy/js/ad2-crazy.js'; s.setAttribute('key','f076d724-2610-11ee-a6a7-f23c9173ed43'); wt.document.body.appendChild(s); console.log('ad2 rotation trigger'); }; runAD2(); })(); } else { // ad2 motion (function (){ var box = document.currentScript.previousElementSibling; window.top.ad2CoverClose = function () { let dom = window.top.document.getElementById("ad2mCoverTemp"); if ( dom ) { dom.parentNode.removeChild(dom); }; }; function gadfif(iframe, pbad) { iframe.frameBorder = 0; iframe.style.cssText = 'border:0;width:100%;height:100%'; let ss = 'script'; let html = "<"+ss+" async src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3165442964443939' crossorigin='anonymous'>"+pbad+"<"+ss+">(adsbygoogle = window.adsbygoogle || []).push({});"; var docs = iframe.contentWindow.document; docs.open().write(html); docs.close(); }; function addad2mCoverBanner(s,w,h) { let wt = window.top; let div = wt.document.createElement("div"); window.top.document.body.appendChild(div); div.innerHTML = '
'; let timer = setInterval(function () { let dom = wt.document.getElementById("ad2mpbIframe"); if ( dom ) { clearInterval(timer); gadfif(dom,s); } }, 100); }; function setParentWH (w,h,bcenter,l1){ var iframe = window.frameElement; if(!iframe){return;}; iframe.width = w; iframe.height = h; iframe.style.width = w + "px"; iframe.style.height = h + "px"; if(l1)return; iframeParent = iframe.parentNode.parentNode; iframeParent.style.width = w + "px"; iframeParent.style.height = h + "px"; iframeParent.style.margin = "0 auto"; if (bcenter) { iframeParent.style.width = "100%"; iframeParent.style.textAlign = "center"; iframe.parentNode.style.display= "inline-block"; }; }; function cindex (n1,n2) { var zdom = document.querySelectorAll(n1); if(zdom.length> 0 ){ for (var i = 0; i < zdom.length; i++) { zdom[i].style.zIndex = n2; }; }; }; function runAD2(){ box.innerHTML=""; var wt = window.top; wt.callbackAD2Book = function (){ window.setTimeout(function(){loadJS(fa_src, true, 'ypa');},300); }; var s = wt.document.createElement('script'); s.id = 'MediaBook-AD2'; s.src = 'https://content.ad2iction.com/mediascroll/book/js/ad2-book.js'; s.setAttribute('key','d98620fc-2610-11ee-a6a7-f23c9173ed43'); wt.document.body.appendChild(s); console.log('ad2 motion trigger'); }; runAD2(); })(); } }