Jump to content


Amaro 'dyn'

Member Since 09/03/2004
Offline Last Active 11/03/2004, 20:54
-----

Posts I've Made

In Topic: Resolução Automatica

09/03/2004, 22:10

Siguinte! Ajustei uns scripts que vi por aki nesse post e botei num site, ateh ai beleza... testei e talz... 100%!!!
mas um belo dia resolvo mudar a página de lugar (no meu hd mesmo! peguei ela dum lugar e botei dentro duma pasta)


<html><head>etc etc...

<script type="text/javascript">
    var ie = /msie/i.test(navigator.userAgent);
    var ieBox = ie && (document.compatMode == null || document.compatMode == "BackCompat");

    function checkSize() {
      var canvasEl = ieBox ? document.body : document.documentElement;
      var w = window.innerWidth || canvasEl.clientWidth;
      var h = window.innerHeight || canvasEl.clientHeight;

      document.getElementById("principal").style.height = Math.max(0, h - 125) + "px";
    }

    window.onload = checkSize;
    window.onresize = checkSize;
</script>

</head><body><table>etc etc

....... aki tem umas coisas do site (nada com javascript) .........

<iframe src="principal.htm" scrolling="auto" frameborder="0" ID="principal" width="100%"></iframe>

</table>
</body>
</html>


Qualé o problema nu script? ele funcionava perfeito antes!

IPB Skin By Virteq