Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

20080714

Internet: Cool Trick Javascript

Simple Internet Trick

Well, this post is quite off from what I have been doing all these while. This is a cool trick that you have to try when you have nothing to do or just feel bored.

Here is the instruction video.


So, lets recap.

  1. You need to open any website. (tips: the more the images, the better it is).
  2. Then you just need to copy the the JavaScript below, and paste it to the URL of the website.
  3. Press Enter and you will see the trick.
Tips: When I tried this for the first time using Firefox, it didn't work, so I thought this trick might not be compatible for the browser. However, apparently, thanks for my Metacafe viewer, if your Firefox is updated, you can use this trick using Firefox. IE works just fine.

Here is the Javascript. Just copy it and paste it in the URL.

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.images; 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;DIS.top=Math.cos(R* y1+i*y2+y3)*y4+y5}R++}setInterval('A()', 5); void(0);

By the way, I don't create this JavaScript, all thanks to the creator, I just want to share this entertaining trick to my readers. Enjoy.