Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/11/2009, 13:51
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 17 años, 4 meses
Puntos: 126
Respuesta: Rellenar alto restante de una web

Hola

Mas o menos es esta parte

Código javascript:
Ver original
  1. var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1
  2. function iecompattest() {
  3.     return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
  4. }
  5.  
  6.  
  7. var window_height = ieNOTopera? iecompattest().clientHeight : window.innerHeight;
  8. var window_width = ieNOTopera? iecompattest().clientWidth : window.innerWidth;
  9.  
  10. if (document.Element || document.body){
  11. var cabecera_height =  document.getElementById('contenido').scrollHeight;
  12. var pie_height =  document.getElementById('pie').scrollHeight;
  13. var cabecera_width =  document.getElementById('contenido').scrollWidth;
  14. } else {
  15. var cabecera_height =  document.getElementById('contenido').clientHeight;
  16. var pie_height =  document.getElementById('pie').clientHeight;
  17. var cabecera_width =  document.getElementById('contenido').clientWidth;
  18. }
  19.  
  20.  
  21. var total_Height = parseInt(cabecera_height) + parseInt(pie_height);
  22.  
  23.         if (total_Height < window_height) {
  24.             document.getElementById('veocine').style.height= window_height;
  25.         }
  26.         else
  27.         {
  28.             document.getElementById('veocine').style.height=total_Height;
  29.         }
  30.  
  31.         if (ancho_video < cabecera_width) {
  32.             document.getElementById('veocine').style.width=window_width;
  33.         }
  34.         else
  35.         {
  36.             document.getElementById('veocine').style.width=parseInt(ancho_video)+20;
  37.         }
  38.  
  39. }

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />