Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/10/2005, 08:50
Avatar de pinchoso
pinchoso
 
Fecha de Ingreso: octubre-2005
Ubicación: Barcelona
Mensajes: 177
Antigüedad: 18 años, 7 meses
Puntos: 0
Hola luzin, utilizando el siguiente script puedes reescalar el tamaño de la ventana e igualarlo al de la imagen que se cargue dentro:

<SCRIPT LANGUAGE="JavaScript">
<!--
var isNav4, isIE4;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
isNav4 = (navigator.appName == "Netscape") ? 1 : 0;
isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}
function fitWindowSize() {
if (isNav4) {
window.innerWidth = document.layers[0].document.images[0].width;
window.innerHeight = document.layers[0].document.images[0].height;
}
if (isIE4) {
window.resizeTo(500, 500);
width = 500 - (document.body.clientWidth - document.images[0].width);
height = 500 - (document.body.clientHeight - document.images[0].height);
window.resizeTo(width, height);
}
}
// -->
</script>

-----en el body pones----

<BODY onLoad="fitWindowSize()">

con eso deberia ser suficiente!

Saludos!