Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/07/2009, 06:58
gerazmv
 
Fecha de Ingreso: octubre-2004
Ubicación: Uruguay
Mensajes: 386
Antigüedad: 22 años
Puntos: 4
Respuesta: Al reducir tamaño ventana reducir imagen

Listo problema resulto lo que hace el script es tomar las medidas del navegador y reducir el tamaño de la imaegn o flash segun las nuevas medidas de las ventana. Es util se los recomiendo .


Código PHP:
function medidas_popup()
 {
    var 
x, y;
    if (
self.innerHeight) { // MOS
 
        
x = self.innerWidth-20;
   
y = self.innerHeight-20;
    } else if (
document.documentElement && document.documentElement.clientWidth) { // IE6 Strict
        
x = document.documentElement.clientWidth;
    
y = document.documentElement.clientHeight;
    }   
 var 
obj=_ge('flashobj'); 
obj.style.width=x+'px';
obj.style.height=y+'px'; 
 
 } 
Luego llamo a la funcion
Código PHP:
<body  onresize="medidas_popup();"> 

TEMA RESUELTO