Buongiorno a tutti,
ho questo script in js che simula effetto alpha
il problema e che con IE funziona ma con firefox ne avete qualcuno che giri anche su firefox???codice:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Nuova pagina 1</title> </style > <TITLE></TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <script language="JavaScript"> <!-- <!-- //--> // Flash Image Extension for Dreamwever ,by Yichun Yuan(dezone@sina.com) nereidFadeObjects = new Object(); nereidFadeTimers = new Object(); function nereidFade(object, destOp, rate, delta){ if (!document.all) return if (object != "[object]"){ //do this so I can take a string too setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0); return; } clearTimeout(nereidFadeTimers[object.sourceIndex]); diff = destOp-object.filters.alpha.opacity; direction = 1; if (object.filters.alpha.opacity > destOp){ direction = -1; } delta=Math.min(direction*diff,delta); object.filters.alpha.opacity+=direction*delta; if (object.filters.alpha.opacity != destOp){ nereidFadeObjects[object.sourceIndex]=object; nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate); } } //--> </script> </head> <body> <a href="http://#" target="_blank"> <img src=immagine.gif alt="Ciao" border="0" style="FILTER: alpha(opacity=55)" onMouseOver=nereidFade(this,300,10,5) onMouseOut=nereidFade(this,50,10,5)> </a> </body> </html>

Rispondi quotando
