El sitio más completo sobre programación, recursos web y herramientas online para Webmasters
Fecha: 21/01/2003

efecto imagen degradee javascript

mediante este javascript podemos simular un efecto degradee en la imagen al pasar el mouse sobre la misma (solo IE).

Código Javascript


<html>
<head>
<!-- Copiar dentro del tag HEAD -->
<style type="text/css">
#im {
FILTER: alpha(opacity=50)
}
</style>
<script type="text/javascript">
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>
</head>
<body>
<!-- Copiar dentro del tag BODY -->
<!-- Colocar dentro del tag IMG -->
<img src='ejemplos/bisco.gif' id="im" onmouseover="high(this)" onmouseout="low(this)">
</body>
</html>

efecto imagen degradee javascript Categoría: Javascript, Efectos imagenes

Compartir efecto imagen degradee javascript en Facebook Twitter MySpace del.icio.us fresqui Meneame


Scripts Similares:

» bloquear boton derecho del mouse con javascript
» bloquear boton derecho del mouse con javascript
» imagen aleatoria script
» efecto intercambio de imagenes con javascript
» banner rotator javascript
» Cambio de imagen a traves de una Lista javascript

Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2010 - Sitio creado y mantenido por Gabriel Marcelo Rodriguez
Hosting de alta calidad a bajo costo | WAVENET.com