• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

JavaScript command to create a tornado out of all images on a website.

Safeway

Lifer
Simply paste this into your browser address bar and hit enter:

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

To return to normal, just refresh the page.

Edit: Do it on a loooong post, and you will see all the user avatars 😛

Edit: If you like the effect, bump it so other users can see it :beer:🙂
 
Originally posted by: mrSHEiK124
Haha, now with 100% more snake.

I just found out that the image links still work. I was chasing around Koing's crab avatar, trying to get to his user profile 😛
 
It's fun changing the getElementsByTagName("img") line to other html elements, too. Nothing like seeing a bunch of divs flying around.
 
My wife came back to her machine with a lot of images floating around on all the websites she had up.... LOL
 
Pretty neat. I just used it on here and the cyclonic effect was more pronounced as was the eye. Joe Bob says check it out. Thansks to the OP.
 
Originally posted by: Fullmetal Chocobo
My wife came back to her machine with a lot of images floating around on all the websites she had up.... LOL

Lmao. I bet she came running to you 😛
 
Originally posted by: Accipiter22
OMFG....I just did it on the Mets thread....2007 posts,500 per page....it was just a solid block of avatars.

Damn you Accipiter, you froze my work PC!

LOL.
 
Back
Top