那个代码有点乱,我自己写了个,功能差不多,提供参考: <html> <head> <title>无标题文档</title> <script language="JavaScript"> imgname=new Array(3); imgname[0]="1.jpg"; imgname[1]="2.jpg"; imgname[2]="3.jpg"; src=new Array(3); src[0]="1.html"; src[1]="2.html"; src[2]="3.html"; var i=0; function playimg() { if(i>2){i=0} myimg.filters.blendTrans.apply(); myimg.src=imgname; myimg.filters.blendTrans.play(); i++; timeout=setTimeout("playimg()",3000); } function a1() {window.open(src,"","");} function a2() {clearTimeout(timeout);playimg();} </script> </head> <body onload="playimg()"> <table width="210" height="146" border="1" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"><div style="position:absolute;width:196px;height:24px;z-index:1;"> <table width="200" height="20" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right"><a href="javascript:i=0;a2()">1</a> <a href="javascript:i=1;;a2()">2</a> <a href="javascript:i=2;;a2()">3</a> </td> </tr> </table> </div><a href="javascript:a1()"><img src="1.jpg" name="myimg" width="200" height="134" border="0" style="filter:blendTrans(Duration=1)"/></a></td> </tr> </table> </body> </html>