<div class="htmlarea"> <textarea id="runcode19088"> <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> <table cellspacing="1" cellpadding="0" border="0"> <tbody> <tr align="middle"> <td width="128" background="http://www.jb51.net/logos.gif"><a href="#" target="_blank"><img onmouseover="nereidFade(this,100,5,7)" style="max-width:90%" onmouseout="nereidFade(this,01,7,5)" src="http://www.jb51.net/logos.gif" alt="非常不错的javascript 图片慢慢下层效果_图象特效" ></a></td> </tr> </tbody> </table> </textarea><br><input onclick="runEx('runcode19088')" type="button" value="运行代码"> <input onclick="doCopy('runcode19088')" type="button" value="复制代码"> <input onclick="doSave(runcode19088)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>