Indonesia
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!--Untuk mencapai efek ini, diperlukan dua langkah adalah: Tambahkan kode berikut ke area <body>--> <STYLE> .spanstyle { LEFT: -5000px; POSITION: absolute } </STYLE> <script> <!-- var imgwidth=468 var imgheight=120 var imgurl=Array baru() imgurl[0]="/u/info_img/2009-06/20/1209_logo.gif" imgurl[1]="" imgurl[2]="" var imgpreload=Array baru() untuk ( i=0 ;i<=imgurl.length-1;i++) { imgpreload[i]=Gambar baru() imgpreload[i].src=imgurl[i] } var x_finalpos=300 var y_finalpos=200 var x_slices=8 var y_slices=3 var jeda=10 var lebar layar=800 var tinggi layar=500 var x_step=Array baru() var y_step=Array baru() var x_randompos=0 var y_randompos=0 var i_loop=0 var max_loop=20 var i_image=0 var width_slice=Matematika .floor(imgwidth/x_slices) var height_slice=Matematika.floor(imgheight/y_slices) var cliptop=0 var clipbottom=height_slice var clipleft=0 var clipright=width_slice var spancounter=0 fungsi memulai() { cliptop=0 clipbottom =height_slice clipleft =0 clipright=width_slice i_loop=0 spancounter=0 if (document.all) { untuk (i=0;i<=y_slices-1;i++) { untuk (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 ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" clipleft+=width_slice clipright+=width_slice spancounter++ } clipleft=0 clipright=width_slice cliptop+ =tinggi_irisan clipbottom+ =tinggi_irisan } } meledak_IE() } fungsi changeimage() { spancounter=0 untuk (i=0;i<=y_slices-1;i++) { untuk (ii=0;ii<=x_slices-1;ii++) { var thisspan =eval("document.all.span"+spancounter+".style") thisspan.posLeft=-5000 thisspan.posTop=-5000 spancounter++ } } spancounter=0 if (i_image>imgurl.length-1) {i_image =0} untuk (i=0;i<=y_slices-1;i++) { untuk (ii=0;ii<=x_slices-1;ii++) { var thisinnerspan=eval("span"+spancounter) thisinnerspan.innerHTML= "<img src='"+imgurl[i_image]+"'>" spancounter++ } } i_image++ inisiasi() } fungsi meledak_IE() { spancounter=0 if (i_loop<=max_loop-1) { untuk (i=0;i <=y_slices -1;i++) { untuk (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 timer= setTimeout("explode_IE()",pause) } else { spancounter=0 clearTimeout(timer) var timer=setTimeout("changeimage()",2000) } } --> </skrip> <skrip> <! -- if (dokumen.semua) { untuk (i=0;i<=y_slices-1;i++) { untuk (ii=0;ii<=x_slices-1;ii++) { document.write("<span id= 'span" +spancounter+"' class='spanstyle'></span>") spancounter++ } } spancounter=0 } --> </script> <!--Langkah 2: Tambahkan "onload=changeimage()" ke < body >Misalnya pada tag: --> <body onload=changeimage()>