Check this trick !

SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
Simple JavaScript trick which works with all browsers.
Effect is impressive if the target page contains lots of images. Just check this out :

Code: javascript
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);

NOTE :: Full credits go to the original coder. This one is not created by me.
Example :
~~~~~~~
(1) Goto this google image search on "fractals" : http://images.google.co.in/images?q=...N&hl=en&tab=wi.
(2) Let the page load fully.
(3) Copy the above script completely and paste in the address bar.

You will love the effect !

Try it on myspace, flickr etc...
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Really cool one but why it does not work same here on this page ?
mayjune's Avatar, Join Date: Jun 2009
Invasive contributor
amazing...btw you should tell how to stop it also !!! lol..
ps - after adding remove the last character i.e. semicolon it will move faster
don't know why though....
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
Quote:
Originally Posted by mayjune View Post
amazing...btw you should tell how to stop it also !!! lol..
Close the window/tab !

Quote:
Originally Posted by mayjune View Post
ps - after adding remove the last character i.e. semicolon it will move faster don't know why though....
Does NOT move faster for me !
mayjune's Avatar, Join Date: Jun 2009
Invasive contributor
@saswat

just tried, i think i know whats wrong....
you must have pasted directly without the ;
paste the normal code run it
while its running, goto the address bar and remove the last ;
then see...
i hope that works...
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
@ MayJune :

Oh, you are speaking about that .. Why do you need to remove the ';' then ?
Just try to run and then try re-running it. It should run faster.

FYI :

If you study the java script closely, you will notice that it has a timer that takes care of animation; with an interval 5 ms. When you re-run the code, you add another timer with the same interval, but starting at a different time, so the animation appears to be faster (as the code is executed 2x time instead of 1x, due to double timers).
mayjune's Avatar, Join Date: Jun 2009
Invasive contributor
@saswat
ah i see, but then the code has changed as in isn't removing the semicolon make a big difference?
also i notice if i paste this in other site, like google or i went to a wallpaper site and tried
the pictures shifted, check out google.com and see....
why it works for google image? as in what makes it tick at places..?
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
Removing the last semicolon is equivalent to not removing it.

The shifting of pics happens here at G4EF too. I don't yet know about its cause.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by SaswatPadhi View Post
Removing the last semicolon is equivalent to not removing it.

The shifting of pics happens here at G4EF too. I don't yet know about its cause.
As I can understand It gets all the IMG tags and changes the position of the elements using Javascript
websiteslate's Avatar, Join Date: Jun 2009
Newbie Member
Nice tips...thanks dear..