<div class="htmlarea"> <textarea id="runcode19088"> <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="아주 좋은 자바스크립트 그림은 천천히 레이어를 낮춥니다. effect_image 특수 효과" ></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="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A 모두 선택 참고: </a>외부 J를 도입해야 하는 경우 실행하려면 새로 고쳐야 합니다 </div>]<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>