JavaScript animation

このページのソース
<HTML><HEAD><TITLE>sample</TITLE> <SCRIPT LANGUAGE="JavaScript"> Image_no=1; Icon=Array(3); Icon[1]=new Image();Icon[1].src="is01.jpg"; Icon[2]=new Image();Icon[2].src="is02.jpg"; Icon[3]=new Image();Icon[3].src="is03.jpg"; function change_image(){ document.image.src=Icon[Image_no].src; setTimeout('change_image()',100); Image_no=Image_no + 1; if(Image_no > 3){ Image_no= 1; } } </SCRIPT> <BODY BGCOLOR="#FFFFFF" onLoad="change_image()"> <CENTER> JavaScript animation<P> <TABLE BORDER> <TR> <TD> <IMG SRC="is01.jpg" name="image"></TD> </TR> </TABLE> </CENTER> </BODY> </HTML>

|戻る|