한국어
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!--이 효과를 얻으려면 두 단계가 필요합니다. 첫 번째 단계. is: <body> 영역에 다음 코드를 추가합니다--> <STYLE> .spanstyle { LEFT: -5000px; POSITION:absolute } </STYLE> <script> <!-- var imgwidth=468 var imgheight=120 var imgurl=new Array() imgurl[0]="/u/info_img/2009-06/20/1209_logo.gif" imgurl[1]="" imgurl[2]="" var imgpreload=new Array() for ( i=0 ;i<=imgurl.length-1;i++) { imgpreload[i]=new Image() imgpreload[i].src=imgurl[i] } var x_finalpos=300 var y_finalpos=200 var x_slices=8 var y_slices=3 var 일시 중지=10 var screenwidth=800 var screenheight=500 var x_step=new Array() var y_step=new Array() var x_randompos=0 var y_randompos=0 var i_loop=0 var max_loop=20 var i_image=0 var width_slice=수학 .floor(imgwidth/x_slices) var height_slice=Math.floor(imgheight/y_slices) var 클립탑=0 var 클립하단=height_slice var 클립왼쪽=0 var 클립라이트=폭_슬라이스 var 스팬카운터=0 함수 시작() { 클립톱=0 클립하단 =height_sliceclipleft =0clipright=width_slice i_loop=0spancounter=0 if (document.all) { for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1; ii++) { var thisspan=eval("document.all.span"+spancounter+".style") x_randompos=Math.ceil(screenwidth*Math.random()) y_randompos=Math.ceil(screenheight*Math.random()) thisspan.posLeft =x_randompos thisspan.posTop=y_randompos thisspan.clip ="ret("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"clipleft+=width_sliceclipright+=width_slicespancounter++ }clipleft=0clipright=width_slicecliptop+ =height_sliceclipbottom+ =height_slice } }Explode_IE() } functionchangeimage() {spancounter=0 for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1;ii++) { var thisspan =eval("document.all.span"+spancounter+".style") thisspan.posLeft=-5000 thisspan.posTop=-5000spancounter++ } }spancounter=0 if (i_image>imgurl.length-1) {i_image =0} for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1;ii++) { var thisinnerspan=eval("span"+spancounter) thisinnerspan.innerHTML= "<img src='"+imgurl[i_image]+"'>"spancounter++ } } i_image++ 초기화() } functionexplore_IE() {spancounter=0 if (i_loop<=max_loop-1) { for (i=0;i <=y_slices -1;i++) { for (ii=0;ii<=x_slices-1;ii++) { var thisspan=eval("document.all.span"+spancounter+".style") x_step[spancounter]=( x_finalpos-thisspan .posLeft)/(max_loop-i_loop) y_step[spancounter]=(y_finalpos-thisspan.posTop)/(max_loop-i_loop) thisspan.posLeft+=x_step[spancounter] thisspan.posTop+=y_step[spancounter]spancounter++ } } i_loop++ var 타이머= setTimeout("explode_IE()",pause) } else {spancounter=0clearTimeout(timer) var 타이머=setTimeout("changeimage()",2000) } } --> </script> <script> <! -- if (document.all) { for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1;ii++) { document.write("<span id= 'span" +spancounter+"' class='spanstyle'></span>")spancounter++ } }spancounter=0 } --> </script> <!--2단계: "onload=changeimage()"를 <에 추가 body >예: 태그의 예: --> <body onload=changeimage()>