27 Comments
- verifex, on 10/12/2007, -2/+12This was posted just a couple weeks ago, come on it's Javascript, can't you guys at least make it a NEW one?
- gkoberger, on 10/12/2007, -1/+9Basically it says paste the following javascript into the address bar when looking at a page with lots of images (I have no clue if this will paste correctly.. digg might filter it)
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("img"); 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);
Kinda cool, but utterly useless
EDIT: People beat me to it with a link to duggmirror.. But this will save you a step... - xmpcray, on 10/12/2007, -2/+9Very nice...! Now I need to have a drink to make this look right....
- inactive, on 10/12/2007, -3/+10Wow! How did they make that cool internal server error from JS :D
(jk) - Andy.D, on 10/12/2007, -2/+9Yeah, it makes images on the page spin in circles. This is pretty old stuff, but you could use it to convince mom and dad that you're leet.
- inactive, on 10/12/2007, -2/+8I just used this on a nice porn gallery site....instant hardon with these flying tities.
- geoffoliver, on 10/12/2007, -2/+6http://duggmirror.com
- biffta, on 10/12/2007, -0/+3Adding a message to the top of your site saying if the site goes down you know why is like leaving a message for the milkman saying "if this note blows away please ring the bell".
- inactive, on 10/12/2007, -0/+3Yes, not only does it make pictures go in circles,but it's link goes in circles from Digg to Reddit to Delicious to dzone to Digg... round and round...
- Nougat, on 10/12/2007, -0/+2If you do it right here on this page, all the little thumbs up and down take flight.
- legomaniac, on 10/12/2007, -1/+2old old old
do people not pay attention when digg tells them a story like theirs has already been submitted?
tsk tsk tsk - dbr_onix, on 10/12/2007, -0/+1http://digg.pastecode.com/6959
This will give you syntax highlighting, and a mirror
- Ben - kengineer, on 10/12/2007, -0/+1If you really want to try something freaky, replace "img" with "div" for digg and watch the page come alive. I little slow but cool.
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); - SirThom, on 10/12/2007, -2/+3"500 Internal Server Error"
Whoah -- that /is/ a neat trick! =/ - drpeppper, on 10/12/2007, -1/+2yea you guys just practically raped my host.
theyre going crazy telling me to upgrade to a dedicated :( - jasonuscg, on 10/12/2007, -0/+0wow neato yay woot kewl! server error!
- Brobdingnagian, on 10/12/2007, -0/+0Dupe
Just don't try the script on Digg before you mark this a dupe.
Script:
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("img"); 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); - oleksiy, on 10/12/2007, -0/+0Here is one neat pure-javascript tool: LuckyZoom http://luckyteam.co.uk/products/LuckyZoom/
- sphetr2, on 10/12/2007, -0/+0I made a bookmarklet called Fly! that uses this code for Firefox.
And people failed to mention that if you keep clicking it it makes the things fly around faster.
And try it on a long thread. lol. all of the avatars swirl around and it lags. - dAbReAkA, on 10/12/2007, -1/+1digg users' memory is a lot shorter than the gold fishes' one..
- jibblies, on 10/12/2007, -2/+1Apparently the hidden trick to this javascript is the ability to get it posted multiple times.
- inactive, on 10/12/2007, -4/+3Anybody else think that would be a funny virus?
- sproket, on 10/12/2007, -4/+0Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Neat trick! - 15thPD, on 10/12/2007, -9/+4Stick your head in a hole and get it stuck.
- rkenward, on 10/12/2007, -7/+2and dead.
- assum09, on 10/12/2007, -10/+3wow this ***** is old! buried
- geoffoliver, on 10/12/2007, -13/+1http://duggmirror.com


What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the