Fun with javascript

I’m no master in javascript,but here is a few fun and cool script i pick around the web.

1.Flying picture

Open any webpage with lots of picture in it and paste this script in the address bar.

Code:

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()’,50); void(0);

2.Direct edit 

Copy this in your adress bar and enter:

Code:

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

3.Own domain

This is my personal favorite.It allows you to create a msn id with your own domain (mymail@mydomain.com)

steps

1.go to  http://get.live.com/getlive/overview with your ie browser.(tested this with opera and it does’t work.not tested in firefox)

2.Paste this code in the address bar

 Code:

javascript: var p = ‘mymail.’; var ds = new Array(’com’, ‘mydomain’); for (var i = 0; i < ds.length; i ++){document.getElementById(’idomain’).options[i] = new Option(p + ds[i], p + ds[i])} alert(’domains added’);
 

replace mymail and mydomain in the script with the name of your choice.The result will be like this:

mymail@mydomain.com 

But there is only one catch,you can only use this in on windows live messenger only and since the domain does not actually exist, you cannot use this email address to send or receive email.

here’s mine

freaz89@a-8-7.tbp

 

Have fun! :)

 


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply