<div class="htmlarea"> <textarea id="runcode98974"> <style type="text/css"> <!-- #menu{ margin:0px; padding:0px; width:350px; height:72px;} #menu li{ margin-right:10px; float:left;} --> </style> <div style="margin-top:20px;" align="center"> <ul id="menu"> <li style="background-image:url(/pic/ma_1.gif)"> <a href="javascript:void(null)"><img src="/pic/Mb_1.gif" alt="工作室 | Studio" border="0" style="max-width:90%" onmouseover="nereidFade(this,100,10,7)" onmouseout="nereidFade(this,01,70,5)"></a> </li> <li style="background-image:url(/pic/ma_2.gif)"><a href="javascript:void(null)"><img src="/pic/Mb_2.gif" alt="油画 | Canvas" border="0" style="max-width:90%" onmouseover="nereidFade(this,100,10,7)" onmouseout="nereidFade(this,01,70,5)"></a></li> <li style="background-image:url(/pic/ma_3.gif)"><a href="javascript:void(null)"><img src="/pic/Mb_3.gif" alt="唐装 | Tangsuit" border="0" style="max-width:90%" onmouseover="nereidFade(this,100,10,7)" onmouseout="nereidFade(this,01,70,5)"></a></li> <li style="background-image:url(/pic/ma_4.gif)"><a href="javascript:void(null)"><img src="/pic/Mb_4.gif" alt="美玉 | Jade" border="0" style="max-width:90%" onmouseover="nereidFade(this,100,10,7)" onmouseout="nereidFade(this,01,70,5)"></a></li> <li style="background-image:url(/pic/ma_5.gif)"><a href="#"><img src="/pic/Mb_5.gif" alt="导航 | Gps" border="0" style="max-width:90%" onmouseover="nereidFade(this,100,10,7)" onmouseout="nereidFade(this,01,70,5)"></a></li> </ul> </div> </textarea> <br><input onclick="runEx('runcode98974')" type="button" value="运行代码"><input onclick="doCopy('runcode98974')" type="button" value="复制代码"> <input onclick="doSave(runcode98974)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A すべて選択 注: </a>外部 Js を導入する必要がある場合は、</div> を実行するために更新する必要があります]<script language="javascript" type="text/javascript"> nereidFadeObjects = new Object(); nereidFadeTimers = new Object(); function nereidFade(object, destOp, rate, delta){ if (!document.all) return if (object != "[object]"){ 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>