1 | javascript:var s=200;var l='px';var m;var g=0.1;var z=100;var x=-1;var y=0; var y2 = 0;DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){var b=0; for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.width='10px'; DIS.height='10px'; DIS.left=(((z*2)+(z*(x)))+'px'); if (i%2==0) {DIS.top=(((z*2)+(-1*z*(Math.sqrt(Math.abs(x))+(Math.sqrt(1-Math.pow(x,2))))))+'px');} else {DIS.top=(((z*2)+(-1*z*(Math.sqrt(Math.abs(x))-(Math.sqrt(1-Math.pow(x,2))))))+'px');} x+=g; if (x>1){x=-1;b=0;}}} m=setInterval('A()',s);void(0) |
Direct link: https://paste.plurk.com/show/470675