[求助]怎么修改可以按照顺序显示图片?
怎么修改可以按照顺序显示图片?
<script language="JavaScript" type="text/javascript">
var fadeimages=new Array();
fadeimages[0]="images/1.jpg";
fadeimages[1]="images/2.jpg";
fadeimages[2]="images/3.jpg";
fadeimages[3]="images/4.jpg";
fadeimages[4]="images/5.jpg";
var preloadedimages=new Array();
for(p=0;p<fadeimages.length;p++);{
preloadedimages[p]=new Image();
preloadedimages[p].src=fadeimages[p];
}function showimage() {
var TransEffect=parseInt(Math.random()*23); img.filters.item(0).Transition=TransEffect;
img.filters.item(0).Apply();
img.src=fadeimages[parseInt(Math.random()*5)];
img.filters.item(0).Play();
setTimeout("showimage()",5000) ;
}
</script>
<img id="img" src="" style="filter:revealTrans(Transition=0,Duration=3)" />