Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/12/2004, 13:20
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años, 1 mes
Puntos: 772
Hola the_max ¿Sabe tu mamá el tipo de páginas que visitas?

Bueno, te explicoteo. La imágen es esta:

<img id="im" src="Fotos/Alejandra_Guzman/miniaturas/TN_Alejandra_Guzman_002.jpg" onMouseOver="high(this)" onMouseOut="low(this)" border="0" alt="Alejandra Guzman&nbsp;1">

Tiene asignado un estilo:

#im {
FILTER: alpha(opacity=50)
}

que por cierto no está nada correcto, porque le pone el mismo id a todas las imágenes. Sería mejor asignarles una clase:

.im {filter: alpha(opacity=50)}

y poner las imágenes como:

<img class="im" ...

por último utiliza tres funciones para hacer el efecto:

<script language="JavaScript1.2">
function high(which2)
{
theobject=which2;
highlighting=setInterval("highlightit(theobject)", 50);

}
function low(which2)
{
clearInterval(highlighting);
which2.filters.alpha.opacity=50;
}
function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if(window.highlighting)
clearInterval(highlighting)
}
</script>

Si con toda esta perorata hay algo que no te haya quedado claro, dilo y procuro explicarlo mejor.

Saludos,