![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/11/2003, 09:28
|
![Avatar de tilu](http://static.forosdelweb.com/customavatars/avatar24216_1.gif) | | | Fecha de Ingreso: agosto-2002 Ubicación: u-l-d-m
Mensajes: 1.885
Antigüedad: 22 años, 5 meses Puntos: 5 | |
Hace mucho en internet encontré este código que le rebaja la intensidad a la imagen luego al pasar el mouse sobre ella vuelve al estado normal.
Puedes manejar a gusto la intensidad de la imagen.
Ya verás las modificaciones al mismo para adaptarlo a tu necesidad.
En el <HEAD> debes poner:
<style type="text/css">
#im {
FILTER: alpha(opacity=50)
}
</style>
<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>
Y luego a tu imagen debes ponerle esto:
<img src="tu_imagen.gif" align="middle" id="im" onmouseover="high(this)" onmouseout="low(this)">
__________________ "Casualidad es el juego favorito del destino", Tilu |