画像の分割表示

 

|戻る|

このページのソース
<HTML><HEAD><TITLE>random</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- Images=new Array(7); Images[1]=new Image();Images[1].src="k1.jpg"; Images[2]=new Image();Images[2].src="k2.jpg"; Images[3]=new Image();Images[3].src="k3.jpg"; Images[4]=new Image();Images[4].src="k4.jpg"; Images[5]=new Image();Images[5].src="k5.jpg"; Images[6]=new Image();Images[6].src="k0.jpg"; Images[7]=new Image();Images[7].src="k6.jpg"; function change_image(){ var q=Math.random(); if(q<=0.5) document.image0.src=Images[6].src; else{if(q<=1) document.image0.src=Images[7].src; }; var n=Math.random(); if(n<=0.5) document.image1.src=Images[1].src; else{if(n<=1) document.image1.src=Images[7].src; }; var m=Math.random(); if(m<=0.5) document.image2.src=Images[2].src; else{if(m<=1) document.image2.src=Images[7].src; }; var l=Math.random(); if(l<=0.5) document.image3.src=Images[3].src; else{if(l<=1) document.image3.src=Images[7].src; }; var k=Math.random(); if(k<=0.5) document.image4.src=Images[4].src; else{if(k<=1) document.image4.src=Images[7].src; }; var p=Math.random(); if(p<=0.5) document.image5.src=Images[5].src; else{if(p<=1) document.image5.src=Images[7].src; }; setTimeout('change_image()',500); } //ランダムに画像を表示--> </SCRIPT> </HEAD> <BODY BGCOLOR="#FFFFFF" onLoad="change_image()"> <CENTER> 画像の分割表示<BR> <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0> <TR> <TD> <IMG SRC="k6.jpg" NAME="image1"></TD> <TD> <IMG SRC="k6.jpg" NAME="image0"></TD> <TD> <IMG SRC="k2.jpg" NAME="image2"></TD> </TR> <TR> <TD> <IMG SRC="k3.jpg" NAME="image3"></TD> <TD> <IMG SRC="k4.jpg" NAME="image4"></TD> <TD> <IMG SRC="k5.jpg" NAME="image5"></TD> </TR> </TABLE> </CENTER> </BODY> </HTML>

|戻る|