Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/10/2005, 09:46
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 lokitaforever

A ver si este código te sirve:
Código PHP:
<html>
<
head>
<
title>Untitled</title>
<
script>
fil 20;
function 
oscurecer(mas) {
  
obj document.getElementById('im');
  
fil += mas;
  
obj.style.filter 'alpha(opacity='+fil+')';
  
obj.style.MozOpacityfil 100;
  if (
fil==100 || fil==20) {
    
clearInterval(pepe);
    
fil=20;
  }
}
function 
aclarar() {
  
clearInterval(pepe);
  
pepe setInterval('oscurecer(-10)',300);
}
</script>
</head>
<body>
<img src="imagen.jpg" id="im" style="filter:alpha(opacity=30); -moz-opacity:.3;" 
onmouseover = "pepe = setInterval('oscurecer(10)',300)" onmouseout = "aclarar()" />
</body>
</html> 
Saludos,