<div class="codetitle"> <span><a style="CURSOR: pointer" data="42879" class="copybut" id="copybut42879" onclick="doCopy('code42879')"><u>複製程式碼</u></a></span>如下碼:</div> <div class="codebody" id="code42879"> <br> <br> > <br>.imgclass{ 寬度:300px;高度:300px;邊框:實心1px 紅色;} <br>; <br> <br> <br>$(function () { <br>$('#Select1') .change(function () { <br>var thevalue = $(this).val(); <br>$('img') .fadeTo(2000, 值) <br>}) <br>}) <br>; <br>頭> <br> <br>; <br><tr> <br><td> <br>透明度:<br><select id="Select1"> <br>0選項> <br>0.2選項> <br>0.4選項> <br>0.6選項> <br>0.8選項> <br>1選項> <br>選擇> <br></select> </td> <br><td> <br><img src="images/%E6%B7%9A%E5%A5%941.gif" class="imgclass" alt="jQuery fadeTo方法調整圖片的透明度使用介紹_jquery" > <br> </td> <br> </tr> <br>表> <br>身體> <br><br> </div>