Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts
Posted by Prakash timilsina Monday, January 25, 2010 2 comments

2 JavaScript Hack II

I gave you the cool and effective javascript tick last time. Now i have some other tircks also

They are

#How to use these hack ?
→ just paste the given codes in the address bar of your browser thats it !!
1. To dispaly the Dancing Images



code for this hack are :


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)+"px";  DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5);  void(0);
Now another hack ..




javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();



Thats it :)
i hope it works..

Posted by Prakash timilsina Sunday, January 24, 2010 2 comments

2 JavaScript Hack







Do you want to fool your friends or family. then i have a simple trick of javascript. by this trick you can just make any website just like a notepad or word editor.


javascript: document.body.contentEditable = 'true';document.designMode = 'on'; void 0


Paste this code in the address bar of the internet browser.

Thats it

Goto Top