View Full Version : Fun harmless javascript trick


Doug Nelson
10-23-2006, 05:59 PM
Copy the following, navigate to the Challenges page, then paste it into your browser's address field and hit return

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);

It actually works with any page, but it's just cooler with lots of thumbnails. To stop it just hit refresh.

byRo
10-23-2006, 07:34 PM
:dizzy: :dizzy: :dizzy: :dizzy: :dizzy:

Cool, Doug. :thumbsup:


mistermonday
10-23-2006, 07:52 PM
Doug, definitely cool!! It may be harmless but if you paste it into the Adobe Photoshop user forum link below, it raises a whole bunch of red flags with Adobe. :classic: :classic: :classic:

http://www.adobeforums.com/cgi-bin/webx?14@@.ee6b366

Regards, Murray

DannyRaphael
10-23-2006, 08:11 PM
:dizzy: :dizzy: :dizzy: :dizzy: :dizzy:

Cool, Doug. :thumbsup:

RôWhat Rô said. What a riot. :)

Kraellin
10-23-2006, 09:14 PM
isnt that fascinating. where do we find these things? :)

Gary Richardson
10-24-2006, 04:47 AM
You've got too much free time on your hands Doug.

You should be busy chasing the contractors, to make sure that the moderators new swimming pool and sauna complex gets finished on time. :D :D :D

byRo
10-24-2006, 07:48 AM
You should be busy chasing the contractors, to make sure that the moderators new swimming pool and sauna complex gets finished on time. :D :D :D
Gary, you can't post this here - please use the moderator's thread.
Otherwise everybody's going to know about the big christmas party at Doug's place. :D


Gary Richardson
10-24-2006, 08:15 AM
OOPS! :blush:

And to think I nearly mentioned the RetouchPRO Ferrari that Flora's been hogging all this time. :wink:

T Paul
10-24-2006, 09:44 AM
Gary,

Flora promised I could have it next! :wink:

Gary Richardson
10-24-2006, 04:37 PM
Not fair, I was promised it next, you're just picking on me cos I'm a newbie. :tongue:

EDIT: In danger of going a bit too far OT here, sorry. :blush: