[Fun] Playing with Javascript

Download: http://michaelsync.net/demo/Funny-Javascript.txt

Fun #1:

  1. Go to any website (eg: Google Personalized HomePage)
  2. Delete everything in the address bar
  3. paste the following code in the address bar:
    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);
    
  4. Press enter and have fun! :)

Thanks to Grim.

Fun #2:

  1. Go to Google Classic Homepage (*NOT Personalized Home.*))
  2. Delete everything in the address bar
  3. paste the following code in the address bar:
    javascript:i=100;void(setInterval("i++;document.images[1].width=i",5),setInterval("i++;document.images[1].height=i",5),setInterval("i++;document.images[2].width=i",5),setInterval("i++;document.images[2].height=i",5),setInterval("i++;document.images[3].width=i",5),setInterval("i++;document.images[3].height=i",5),setInterval("i++;document.images[4].width=i",5)
    ,setInterval("i++;document.images[4].height=i",5) )
    
  4. Press Enter

Thanks to Harpreet and Philip(Ye Maung).

Fun #3:

  1. Launch Internet Explorer
  2. Delete everything in the address bar
  3. paste the following code in the address bar:
    javascript:function flood(n) {if (self.moveBy) {for (i = 15; 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);
    } } }}flood(6);{ var inp = "MIKE morf ,ecnavda ni RAEY WEN YPPAH ,iH"; var outp
    = ""; for (i = 0; i <= inp.length; i++) {outp =inp.charAt (i) + outp ; }
    alert(outp) ;}; reverse
    
  4. Press Enter

Thanks to the author of this post.

Fun #4: last but not least :)

  1. Launch Internet Explorer
  2. Delete everything in the address bar
  3. paste the following code in the address bar:

    javascript:function reverse() { var inp = " )-: krow ru no yrrac ko.mih morf
    nraeL .seod CNYS LEAHCIM ekil krow lufesu emos oD .esnesnon siht lla gniod rof
    uoy gniyap ton si ynapmoC"; var outp = ""; for (i = 0; i <= inp.length; i++) {
    outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse()

  4. Press Enter

Thanks to Eve for forwarding this code.

Cool.. isn’t it??
Happy Coding! Njoy!! :)

6 thoughts on “[Fun] Playing with Javascript

  1. hum?
    maybe cuz of copying text from post.
    the best way to do is that download txt file.
    copy one js and paste it in addressbar… u will see something is happening in ur browser.. . :) (I have tested.) I think, you also tried the last one ..

  2. Hey Michael Sync

    I am not okay for fun#2. How can I do?
    I don’t like fun#4. Bcoz it include the name,Michael Sync. ha ha har :)
    Thank you for posting your funny.

    Carry on
    Have a nice day.

Leave a Reply

Your email address will not be published. Required fields are marked *