<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="非常に優れた 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="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A すべて選択 注: </a>外部 Js を導入する必要がある場合は、</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>