<script language="javascript">  
var imgUrl=new Array();
var imgLink=new Array();
var imgPre=new Array();
var adNum = 0;
var maxImg = 2;
imgUrl[1]="http://img.sports.tom.com/img/assets/200509/050927071818sportsgnzt200592701.jpg";
imgPre[1]="图片1<br>1111111111";
imgLink[1]="图片切换1.html"
imgUrl[2]="http://img.sports.tom.com/img/assets/200509/050927075953zt20050926107.jpg";
imgPre[2]="图片2<br>2222222222";
imgLink[2]="图片切换2.html"
function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
}
function nextAd(){
if(adNum < maxImg)adNum++ ;
else adNum=1;
imgInit.filters.revealTrans.Transition=23;
imgInit.filters.revealTrans.apply();
playTran();
document.images.img.src=imgUrl[adNum];
text_Info.innerHTML = imgPre[adNum];
jumpUrl=imgLink[adNum];
theTimer=setTimeout("nextAd()", 5000);
}
function goUrl(){
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '') window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
</script>
<table id="imgInit" width="210" cellspacing="0" cellpadding="0" style="filter: revealTrans(duration=2,transition=23);">
  <tr>
<td><img src="javascript:nextAd()" name="img" width="210" height="220" vspace="1" border="0" style="cursor:hand" onclick="goUrl()" /></td>
  </tr>
  <tr>
<td><div id="text_Info"></div></td>
  </tr>
</table>
</body>
</html>
这个是刚学JS时改的。。你看下