alla fine ho risolto così:
su IE fa la bella sfumatura graduale, invece su firefox si chiude di colpo...codice:function ChiudiTesto(valore){ var minima = 0; // OPACITA' MINIMA var velocita = 1; // VELOCITA' DELLA TRANSIZIONE if(navigator.appName == "Microsoft Internet Explorer"){ if(valore > minima){ valore = valore - velocita; tabella = document.getElementById("descrizione"); tabella.style.filter = "alpha(opacity:"+valore+")"; //MSIE setTimeout("ChiudiTesto("+valore+")",10); } }else{ tabella = document.getElementById("descrizione"); tabella.style.opacity = 0.0; //FIREFOX } }
ho trovato uno script su html.it che crea un effetto molto simile, volevo usare quello ma ho notato che alla fine funziona come il mio...
non è proprio possibile avere lo stesso effetto su entrambi i browser???

Rispondi quotando