Pages

Sunday 21 August 2011

Make A Website Fly In Your Borwser



javLots of people think that the Javascript is an inferior and poor language but they really don’t know how  extreme powerful language is it of and those people who think the other way they either don't know how to use it or are not familiar with it's capabilities, With javascript you can do lots of cool things such as edit any page, make an image fly etc, but it is a waste of time to spend your time on making images fly with javascripts or editing a page.
Anyways coming to the main topic, did you know that javascript can be used for making websites fly in the air, well if you don't know just paste the following code in to the address bar and see the magic.

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("body"); 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);

Enjoy!

1 comments:

Badrul said...

tq!! :)

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...