• 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.

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Originally posted by: Jeff7
Originally posted by: glenn beck
wanna throwup? milliondollarhomepage.com

The new browser-based CPU stress test. 🙂

Seriously though, this could be used as a cpu benchmark test. My laptop locked up when I ran this test while on my desktop, it's rendering the 'freebies thread' at about .2FPS.
 
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);
 
Originally posted by: goku
Seriously though, this could be used as a cpu benchmark test. My laptop locked up when I ran this test while on my desktop, it's rendering the 'freebies thread' at about .2FPS.

Oh, just give it some time. I opened up the Mets thread that was mentioned. I think I'm at 200 posts per page? It kept my XP2400 busy for perhaps 30 seconds until the icons all appeared in their "tornado" positions, and it then proceeded in its animation at 1-3fps. It only seems like the system is locked because the browser is set to normal priority by default, and if it's very busy, other normal applications will have to wait in line to get the processor's attention.
 
Here's an altered version to show you all the hidden inputs on a page:
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("input"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DI[ i ].type = "text"}R++}setInterval('A()',5); void(0);

I didn't strip out the unnecessary variables.
 
Originally posted by: joshsquall
Here's an altered version to show you all the hidden inputs on a page:
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("input"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DI[ i ].type = "text"}R++}setInterval('A()',5); void(0);

I didn't strip out the unnecessary variables.

Wait, where are the position functions?
 
Back
Top