<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><title></title> <br><style type="text/css"> <BR>.imgclass{ width:300px; height:300px; border:solid 1px red;} <BR></style> <br><script src="jquery-1.9.1.js" type="text/javascript"></script> <br><script type="text/javascript"> <BR>$(function () { <BR>$('#Select1').change(function () { <BR>var thevalue = $(this).val(); <BR>$('img').fadeTo(2000, thevalue); <BR>}) <BR>}) <BR></script> <br> <br> <br><table> <br><tr> <br><td> <br>透明度: <br><select id="Select1"> <br><option value="0">0</option> <br><option value="0.2">0.2</option> <br><option value="0.4">0.4</option> <br><option value="0.6">0.6</option> <br><option value="0.8">0.8</option> <br><option value="1">1</option> <br></select> <br> </td> <br><td> <br><img src="images/%E6%B3%AA%E5%A5%941.gif" class="imgclass" alt="jQuery fadeTo方法调整图片的透明度使用介绍_jquery" > <br> </td> <br> </tr> <br> </table> <br> <br> </div>