Comex Vis: Brasil (Geral)
{source}[[script type="text/javascript"]] function resizeIframe() { altura = document.getElementById('iframe_principal').contentWindow.document.body.scrollHeight; if (altura & gt; 6000) { document.getElementById('iframe_principal').height = altura; } } window.onscroll = function() { myFunction() }; var resize = true; function myFunction() { if ((document.body.scrollTop & gt; 6000|| document.documentElement.scrollTop & gt; 6000) & amp; & amp; resize) { resize = false; resizeIframe(); } } var _theframe = document.getElementById("iframe_principal"); _theframe.contentWindow.location.href = _theframe.src; [[/script]] {/source} {source} [[iframe src="balanca/comex-vis/brasil/output/html/brasil_geral.html" id="iframe_principal" onLoad="calcHeight();" width="100%" height="6000" style="border: none; width: 1px; min-width: 100%; *width: 100%;" scrolling="no"]][[/iframe]] {/source}