Tema: ?
Ver Mensaje Individual
  #11 (permalink)  
Antiguo 01/10/2010, 19:17
Avatar de carmagedon
carmagedon
 
Fecha de Ingreso: junio-2005
Ubicación: Argentina
Mensajes: 794
Antigüedad: 18 años, 10 meses
Puntos: 23
Respuesta: ?

Fijate ahí a ver que pasa..

Código HTML:
Ver original
  1.     <head>
  2.         <title> test </title>
  3.         <style type="text/css">
  4.             .window {
  5.                 position: relative;
  6.                 float: left;
  7.                 width: 100%;
  8.                 background-color: aqua;
  9.             }
  10.             .bar {
  11.                 position:relative;
  12.                 float: left;
  13.                 width: 100%;
  14.                 background-color: red;
  15.             }
  16.         </style>
  17.     </head>
  18.     <body>
  19.         <div class="window" id="idwindow"></div>
  20.         <div class="bar" id="idbar"></div>
  21.     </body>
  22.     <script type="text/javascript">
  23.         var contentHeightBar = 30;
  24.         var contentHeightWindow = 0;
  25.         var totalHeightWindows = window.innerHeight;
  26.         contentHeightWindow = (totalHeightWindows - contentHeightBar);
  27.         document.getElementById("idwindow").style.height = contentHeightWindow + "px";
  28.         document.getElementById("idbar").style.height = contentHeightBar + "px";
  29.     </script>
  30. </html>

Cualquier cosa avisás.
Suerte.
__________________
Freelance - Aplicaciones Web