Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/12/2004, 02:02
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Hola de nuevo.

Habría que hacer algunos cambios y dejar el código tal que así:
Código HTML:
<html>
<head>
<title>Untitled</title>
<script>
zoom=100;
var tiempo;
function reduce(obj) {
  if(zoom>50) zoom-=10;
	obj.style.width=zoom;
	obj.style.height=zoom;
	im=obj;
	tiempo=setTimeout('reduce(im)',1000);
}
function amplia(obj) {
	obj.style.width=100;
	obj.style.height=100;
	zoom=100;
	clearTimeout(tiempo)
}
</script>
</head>
<body>
<img src="/Web/imagen.gif" 
 onmouseover="reduce(this)" onmouseout="amplia(this)" />
</body>
</html> 
Saludos,