Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/10/2006, 04:57
clinisbut
 
Fecha de Ingreso: diciembre-2004
Mensajes: 278
Antigüedad: 19 años, 6 meses
Puntos: 0
Luego efects.js, del cual no uso ninguna funcion

Código:
function init_opacidad_in( el_div )
{	obj = document.getElementById( 'auto_'+el_div );
	if (document.all)
    obj.style.filter = 'alpha(opacity=0)';
  else
    obj.style.MozOpacity = 0; 
	obj.style.display='block';
	tempo=setInterval('opacidad_in(\'' + el_div + '\')',50);
}

//El elemento al que apliquemos fade_in debe llamarse 'auto_'+xxxx
function opacidad_in(	el_div )
{	opa+=10;
  if (opa>=100) 
	{	clearInterval(tempo);
		opa=100;
	}
  obj = document.getElementById( 'auto_'+el_div );
  if (document.all)
    obj.style.filter = 'alpha(opacity='+opa+')';
  else
    obj.style.MozOpacity = opa/100; 
}

//El elemento al que apliquemos fade_out debe llamarse 'auto_'+xxxx
function opacidad_out( el_div )
{	opa-=10;
  obj = document.getElementById( 'auto_'+el_div );
	
	if (opa<=0) 
	{	clearInterval(tempo);
		obj.style.display='none';
		opa=0;
	}
  
  if (document.all)
    obj.style.filter = 'alpha(opacity='+opa+')';
  else
    obj.style.MozOpacity = opa/100; 
}