Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/03/2006, 02:44
Avatar de Ascariz
Ascariz
 
Fecha de Ingreso: noviembre-2005
Mensajes: 403
Antigüedad: 18 años, 5 meses
Puntos: 0
Pregunta ayuda con ventanas

Estoy haciendo una pagina que lo que muestra una foto ampliada y retoca el tamaño de la ventana a la foto.

pero el ancho me lo hace bien pero el largo no por que puede ser ?
Código HTML:
<HTML>
<HEAD>
<script type='text/javascript'>
if(document.location.search=='')  {
  newwin=window.open(document.location + "?newwin=true", name, "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top)
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
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(300, 300);
width = 300 - (document.body.clientWidth -  document.images[0].width);
height = 300 - (document.body.clientHeight -  document.images[0].height);
window.resizeTo(width, height);
   }
}
//  End -->
</script>
<title>Foto Ampliada</title>
</HEAD>
	<BODY onLoad="fitWindowSize()" leftmargin='0' topmargin='0'>
		<img src="&<%request("rutafoto")%>" border="0" align="absmiddle" />
	</BODY>
</HTML> 
__________________
Desarrollador & Diseñador Web
Diseño de paginas web en Madrid