Name.com Cyber Monday sale: $6.99 .com domains and more. Shop the sale.

Amazing Javascript Trick

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

dgridley

Top Member
Impact
616
Check this out!

1. go to any website (try YouTube or Flickr)

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 !

:hehe:
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
missing ; before statement
y1+i*y2+y3)*y4+y5}R++}setInterv al('A()',5); void(0);

:(
 
0
Close
0
Close
The code he posted works..

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.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);
 
0
Close
I was playing with it on namepros index few days ago :lol:
 
0
Close
its not working for me
 
0
Close
It doesn't work for me either.
 
0
Close
0
Close
Looks cool on amazon.com homepage.

Doesn't appear to work with yahoo, though.

-Steve
 
0
Close
Not working for me right now for some reason, however i have been shown this before - recognize it by the code :D

Very tempting just to stick in on all your sites lol. For those who get it to work, pressing/hitting enter again will increase the effect from what i remember :D

Edit: Ah got it to work, this isn't quite the one i was shown but nearly the same affect. I'll try to find the other one :)
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back