記憶

|戻る|

プログラム
<HTML><HEAD><TITLE>random</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- Images=new Array(36); Images[1]=new Image();Images[1].src="../photo/01.jpg"; Images[2]=new Image();Images[2].src="../photo/02.jpg"; Images[3]=new Image();Images[3].src="../photo/03.jpg"; Images[4]=new Image();Images[4].src="../photo/04.jpg"; Images[5]=new Image();Images[5].src="../photo/05.jpg"; Images[6]=new Image();Images[6].src="../photo/06.jpg"; Images[7]=new Image();Images[7].src="../photo/07.jpg"; Images[8]=new Image();Images[8].src="../photo/08.jpg"; Images[9]=new Image();Images[9].src="../photo/09.jpg"; Images[10]=new Image();Images[10].src="../photo/10.jpg"; Images[11]=new Image();Images[11].src="../photo/11.jpg"; Images[12]=new Image();Images[12].src="../photo/12.jpg"; Images[13]=new Image();Images[13].src="../photo/13.jpg"; Images[14]=new Image();Images[14].src="../photo/14.jpg"; Images[15]=new Image();Images[15].src="../photo/15.jpg"; Images[16]=new Image();Images[16].src="../photo/16.jpg"; Images[17]=new Image();Images[17].src="../photo/17.jpg"; Images[18]=new Image();Images[18].src="../photo/18.jpg"; Images[19]=new Image();Images[19].src="../photo/19.jpg"; Images[20]=new Image();Images[20].src="../photo/20.jpg"; Images[21]=new Image();Images[21].src="../photo/21.jpg"; Images[22]=new Image();Images[22].src="../photo/22.jpg"; Images[23]=new Image();Images[23].src="../photo/23.jpg"; Images[24]=new Image();Images[24].src="../photo/24.jpg"; Images[25]=new Image();Images[25].src="../photo/25.jpg"; Images[26]=new Image();Images[26].src="../photo/26.jpg"; Images[27]=new Image();Images[27].src="../photo/27.jpg"; Images[28]=new Image();Images[28].src="../photo/28.jpg"; Images[29]=new Image();Images[29].src="../photo/29.jpg"; Images[30]=new Image();Images[30].src="../photo/30.jpg"; Images[31]=new Image();Images[31].src="../photo/31.jpg"; Images[32]=new Image();Images[32].src="../photo/32.jpg"; Images[33]=new Image();Images[33].src="../photo/33.jpg"; Images[34]=new Image();Images[34].src="../photo/34.jpg"; Images[35]=new Image();Images[35].src="../photo/35.jpg"; Images[36]=new Image();Images[36].src="../photo/36.jpg"; function change_image(){ var n=Math.random(); if(n<=(1/36)) document.image1.src=Images[1].src; else{if(n<=(2/36)) document.image1.src=Images[2].src; else{if(n<=(3/36)) document.image1.src=Images[3].src; else{if(n<=(4/36)) document.image1.src=Images[4].src; else{if(n<=(5/36)) document.image1.src=Images[5].src; else{if(n<=(6/36)) document.image1.src=Images[6].src; else{if(n<=(7/36)) document.image1.src=Images[7].src; else{if(n<=(8/36)) document.image1.src=Images[8].src; else{if(n<=(9/36)) document.image1.src=Images[9].src; else{if(n<=(10/36)) document.image1.src=Images[10].src; else{if(n<=(11/36)) document.image1.src=Images[11].src; else{if(n<=(12/36)) document.image1.src=Images[12].src; else{if(n<=(13/36)) document.image1.src=Images[13].src; else{if(n<=(14/36)) document.image1.src=Images[14].src; else{if(n<=(15/36)) document.image1.src=Images[15].src; else{if(n<=(16/36)) document.image1.src=Images[16].src; else{if(n<=(17/36)) document.image1.src=Images[17].src; else{if(n<=(18/36)) document.image1.src=Images[18].src; else{if(n<=(19/36)) document.image1.src=Images[19].src; else{if(n<=(20/36)) document.image1.src=Images[20].src; else{if(n<=(21/36)) document.image1.src=Images[21].src; else{if(n<=(22/36)) document.image1.src=Images[22].src; else{if(n<=(23/36)) document.image1.src=Images[23].src; else{if(n<=(24/36)) document.image1.src=Images[24].src; else{if(n<=(25/36)) document.image1.src=Images[25].src; else{if(n<=(26/36)) document.image1.src=Images[26].src; else{if(n<=(27/36)) document.image1.src=Images[27].src; else{if(n<=(28/36)) document.image1.src=Images[28].src; else{if(n<=(29/36)) document.image1.src=Images[29].src; else{if(n<=(30/36)) document.image1.src=Images[30].src; else{if(n<=(31/36)) document.image1.src=Images[31].src; else{if(n<=(32/36)) document.image1.src=Images[32].src; else{if(n<=(33/36)) document.image1.src=Images[33].src; else{if(n<=(34/36)) document.image1.src=Images[34].src; else{if(n<=(35/36)) document.image1.src=Images[35].src; else{if(n<=1) document.image1.src=Images[36].src; }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}; setTimeout('change_image()',1000); } //ランダムに画像を表示--> </SCRIPT> </HEAD> <BODY text="gray" BGCOLOR="#000000" onLoad="change_image()"> <CENTER> 記憶<BR> <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0> <TR> <TD width="400" height="300" background="../photo/back.gif" align="center" valign="middle"><IMG SRC="../photo/01.jpg" NAME="image1"></TD> </TR> </TABLE><P> |<A HREF="../../index.html">戻る</A>|<P> </CENTER> </BODY> </HTML>
|戻る|