Very good javascript Image lower-layer effect
<SCRIPT language = JavaScript> 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 <body> <TABLE cellSpacing = 1 cellPadding = 0 border = 0> <TBODY> <TR align = middle> <TD width = 128 background = http://www.jb51.net/logos.gif > </TD> </TR> </TBODY> </TABLE> </body>
[Ctrl + A Select All Note: If you need to introduce external Js, you need to refresh it to execute]