Note: Try the below scripts on your own risk. As far as I know, these are not at all harmful. However, I will not be responsible for any damage.
Try these funny scripts just by copying and pasting in your browser’s address bar. Try demo links, in case the scripts are not working in your browser’s address bar.
Just paste the JavaScript below into the address bar of any browser then press Enter, it makes all pictures on the current web page fly around like a snake when you move the pointer.
In the above JavaScript, you can change
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var 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++}tag=setInterval('A()',5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i<DIL; i++){DI[i].style.position="static";}}; void(0)
In the above JavaScript, you can change
document.getElementsByTagName("
img")
to any HTML tag that you want to apply.Here’s some another versions of this effect:
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);
Transform the web page into the eaditable mode
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 This JavaScript code lets you modify any web page in real-time; and with Firefox, you can even save the modified web pages to your computer. You can do many funny things with the simple JavaScript above, such as: faking the screen capture of some proof, faking some hot news for April Fool’s Day… quickly.
Give your lover the link of this effect, then ask her to answer the question “Do you love (marry) me?” and she can’t repudiate, lol.
Joking Error Message Alert box
Like the above funny JavaScript but this script uses the picture to make the choices; maybe from the idea of this joke plus some different pictures, you can make more funny jokes.
The text based Cheerleader Animation
No need to say more about it, let try it out by yourself.
Faking Textarea on Typing
This funny script made to prove that you’re too trusting of people. Don’t believe me? Just check it by yourself.
Unclosable Window
Yeah, you should recheck your mind carefully before run this script, maybe it will not be funny; and you have to enable popup for this damn script, lol.
Shaking the browser window for a while
Change the dimension of your browser window to Normal mode, maybe a half of the screen resolution is best; then run the code below by pasting it into the address bar and codessing the Enter key.
javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)
Love Tester
A small JavaScript to test the love compatibility’ between two people. I & this script are not responsible for any broken relationship you tried, lol.
Simple & Funny Games by JavaScript
You can rotate images of any website to create wonderful effect’s.To Rotate images we will use javascript codes.Using this trick you can rotate images in Circular, Horizontal, Combination of Circular and horizontaltrajectory.The images can also be made to revolve with your mouse movement.You should also read Cool And Awesome Javascript tricks. It will work in all modern browsers like Google Chrome,Internet Explorer,Firefoxetc and on all websites as well.
Open any website, copy and paste the following javascript code in your browser address bar and press Enter.The images will start rotating in circular trajectory.
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);