Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/12/2004, 02:06
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 Wel

A ver si te sirve esto:
Código HTML:
<html>
<head>
<title>Untitled</title>
<script>
zoom=100;
var tiempo;
function reduce() {
  obj=document.getElementById('im');
  if(zoom>50) zoom-=10;
	obj.style.width=zoom;
	obj.style.height=zoom;
	tiempo=setTimeout('reduce(im)',1000);
}
function amplia(im) {
  obj=document.getElementById('im');
	obj.style.width=100;
	obj.style.height=100;
	zoom=100;
	clearTimeout(tiempo)
}
</script>
</head>
<body>
<img id="im" src="/Web/imagen.gif" 
 onmouseover="reduce()" onmouseout="amplia()" />
</body>
</html> 
Saludos,