Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/08/2002, 21:00
chivi
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 889
Antigüedad: 23 años, 1 mes
Puntos: 4
Re: Alguien me puede explicar?

Ahhh y la explicación... pues ésto es lo que debes tener en cuenta:

<html>
<head>
<style type="text/css">
#im {

//Opacidad que tendrá la imagen nada más ser cargada
FILTER: alpha(opacity=50)

}
</style>

<script language="JavaScript1.2">
function high(which2)
{
theobject=which2;

//Te aconsejo no cambiar esta parte
highlighting=setInterval("highlightit(theobje ct)",50);

}
function low(which2)
{
clearInterval(highlighting);

//Opacidad que tendrá al quitar el mouse de la imagen
which2.filters.alpha.opacity=50;

}
function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)

//Velocidad con la cual volverá a su opacidad normal
cur2.filters.alpha.opacity+=5

else if(window.highlighting)
clearInterval(highlighting)
}
</script>
</head>
<body>
<img src=imagen.jpg id="im" onmouseover="high(this)" onmouseout="low(this)">
</body>
</html>

Chao!

<html><center><embed src="http://www.iespana.es/redmaestro/banner.swf" height=75 width=500>
</embed></center></html>