脚本用javascript
5张图片为例:
<script language="JavaScript">
function imgload()
{
var i = 0;
var imageObj = new Image();
images = new Array();
images[0]="image1.jpg"
images[1]="image2.jpg"
images[2]="image3.jpg"
images[3]="image4.jpg"
images[4]="image4.jpg"
for(i=0; i<=4; i++)
{
imageObj.src=images[i];
}
}
</script>