DIGIT-ARC read-only archive · snapshot: July 23, 2026

Webpage on Drugs - Javascript

4 posts · originally from https://geek.digit.in/community/threads/webpage-on-drugs-javascript.138914/

TSPatange_1309
TSPatange_1309 Original post #1
Apr 5, 2011 at 1:52 PM
Hey Hello Guyzz...i just found one vry funny javascript...& i wanna share it with u...! the name of tht javascript is "webpage on drugs"...!:mrgreen::mrgreen:

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("div"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

just Ctrl + V (Copy-Paste) the above code in your browsers address bar and see the magic...!:arrow::arrow::arrow::shock:
funkysourav
Apr 5, 2011 at 2:05 PM
why dont you post a screenshot of what happens?
i am not exactly comfy of the idea of running any unknown script in my browser
coolpcguy
Apr 5, 2011 at 3:02 PM
Meh, just applies sin() * cos() to x,y,z variables to each div element. been seeing these since eternity.
skeletor
Apr 5, 2011 at 3:03 PM
Locking this thread. :)