[script]function getDocHeight(doc) { doc = doc || document; var body = doc.body, html = doc.documentElement; if(body == null || body.scrollHeight == null || body.offsetHeight == null || html.clientHeight == null || html.scrollHeight == null || html.offsetHeight == null) { console.log('body null'); return false; }else{ var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); return height; }}function setIframeHeight(id) { var ifrm = document.getElementById(id); var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document; ifrm.style.visibility = 'hidden'; ifrm.style.height = '10px'; ifrm.style.height = getDocHeight( doc ) + 4 + 'px'; ifrm.style.visibility = 'visible';}setIframeHeight('iframe_lp');var iframeLpMso = document.getElementById('iframe_lp');if (iframeLpMso.attachEvent){iframeLpMso.attachEvent('onload', function(){console.log('iframe LP loaded');setIframeHeight('iframe_lp');});} else {iframeLpMso.onload = function(){console.log('iframe LP loaded');setIframeHeight('iframe_lp'); };}[/script]
Zapisz się do newslettera

Proponowane kategorie

    Proponowane produkty