网页上面图片轮换显示特效


网页上面图片轮换显示特效,尺寸最好是符合常规的那种,
<script language=Javascript>
<!-- // BannerAD
var bannerAD=new Array();
var adNum=0;
bannerAD[0]="images/fj/fj1.jpg";
bannerAD[1]="images/fj/fj2.jpg";
bannerAD[2]="images/fj/fj3.jpg";
bannerAD[3]="images/fj/fj4.jpg";
var preloadedimages=new Array();
for (i=1;i<bannerAD.length;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=bannerAD[i];
}
function setTransition(){
if (document.all){
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
bannerADrotator.filters.revealTrans.apply();
}
}
function playTransition(){
if (document.all)
bannerADrotator.filters.revealTrans.play()
}
function nextAd(){
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.bannerADrotator.src=bannerAD[adNum];
playTransition();
theTimer=setTimeout("nextAd()", 5000);
}
//-->
</script>
<IMG style="FILTER: revealTrans(duration=2,transition=20)" src="images/fj/fj1.jpg" width="620" height="420" border=0 name=bannerADrotator>
<script language=Javascript>nextAd()</script>