Funny Javascripts
Javascripts are now-a-days widely being used in designing and developing websites.But they can also be used in some different way which can make you laugh!!!
So here are some of the funny java scripts you will like to try.All you need to do is to open any website,copy any of the following Javascript and paste it in the address bar and hit Enter to see the magic!!!
1.Webpage on Roller Coaster Ride:
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);
2.Website getting mad:
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("div"); 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);
3.Images going Up & Down:
javascript:R=0; x1=.2; y1=.1; x2=.5; y2=.48; x3=3.2; y3=.48; x4=600; y4=400; x5=600; y5=400; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.rightt=(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);
Enjoyed it???Have some questions to ask???Then Don't be shy to make a comment.
Tags: Cool Tricks, Funny Tricks, Javascripts
Share your views...
6 Respones to "Funny Javascripts"
thats really funny.Great job!!!!
February 9, 2010 at 8:53 PM
thanx buddy
so funny...hihihihi
great great
February 11, 2010 at 11:14 AM
nice bro !
February 12, 2010 at 9:09 AM
thank you all
Nice Yar :)
December 22, 2010 at 1:03 AM
Post a Comment
You need not to login for making a comment.So please do comment about this post/trick.