The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Interesting JS trick

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Anand M

Posts: 984
Nickname: anandm
Registered: May, 2004

Anand M is a VB.NET MVP working as a Senior Architect @ Polaris Software Lab Ltd
Interesting JS trick Posted: Sep 16, 2006 1:46 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Anand M.
Original Post: Interesting JS trick
Feed Title: .NET From India
Feed URL: http://www.dotnetindia.com/index.rss
Feed Description: Your daily dose of .NET From India
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Anand M
Latest Posts From .NET From India

Advertisement

My friend and co-MVP Sanjay Vyas actually pointed out this trick when we were chatting today morning. I am not sure where he got it from, but it is kind of cool.

The idea is to go to any site (say www.microsoft.com) in IE (have not tried it with FF or Opera though), and then type the following script 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 )

And also try just keeping the focus on the addressbar and click enter multiple times.

Read: Interesting JS trick

Topic: Stronger password encryption Previous Topic   Next Topic Topic: Clean up you music library and other folders

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use