Foros del Web » Programando para Internet » Javascript »

Como cambio esto en funcion FADE

Estas en el tema de Como cambio esto en funcion FADE en el foro de Javascript en Foros del Web. ESTE ES EL CODE : <html> <head> <!-- Copiar dentro del tag HEAD --> <style type="text/css"> #im { FILTER: alpha(opacity=50) } </style> <script language="JavaScript1.2"> function ...
  #1 (permalink)  
Antiguo 23/11/2002, 12:52
Avatar de CHILENOCES  
Fecha de Ingreso: octubre-2001
Ubicación: Mmm paseando por la vida
Mensajes: 491
Antigüedad: 22 años, 6 meses
Puntos: 0
Como cambio esto en funcion FADE

ESTE ES EL CODE :

<html>
<head>
<!-- Copiar dentro del tag HEAD -->
<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>

</head>

<body>
<!-- Copiar dentro del tag BODY -->
<!-- Colocar dentro del tag IMG -->

<img SRC="imagen.gif" id="im" onmouseover="high(this)" onmouseout="low(this)">
</body>
</html>


Eso hace que la imagen aparezca nublada y onmouseover se vea 100% pero quiero invertir el efecto osea que este al principio 100% y onmouseover se nuble

Creo que es pan comido pero no se de JS.

Saludos y gracias.
__________________
ChilenoCesar Looking for something new...
  #2 (permalink)  
Antiguo 23/11/2002, 13:49
Avatar de .
.
 
Fecha de Ingreso: mayo-2002
Ubicación: Tampico
Mensajes: 906
Antigüedad: 22 años
Puntos: 1
le hice unas cuantas modificaciones
Código:
<html>
<head>
<!-- Copiar dentro del tag HEAD -->
<style type="text/css">
#im {
FILTER: alpha(opacity=100)
}
</style>

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

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

</head>

<body>

<img SRC="logo_header.gif" id="im" onmouseover="high(this)" onmouseout="low(this)">
</body>
</html>

Última edición por .; 23/11/2002 a las 13:51
  #3 (permalink)  
Antiguo 23/11/2002, 13:53
Avatar de CHILENOCES  
Fecha de Ingreso: octubre-2001
Ubicación: Mmm paseando por la vida
Mensajes: 491
Antigüedad: 22 años, 6 meses
Puntos: 0
Muchas gracias . por tu ayuda me es muy util gracias y Saludos.
__________________
ChilenoCesar Looking for something new...
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:46.