?

Log in

No account? Create an account

Previous Entry | Next Entry

Ooooooooooh... pretty, math!

My co-workers are awesome when they send me cool stuff like this:
(edit: may crash safari, but it worked fine in IE and Firefox for me)
- Go To Google.com -- click images
- Search For keyword "Flowers" or anything you want.
- After search returns, delete the url and paste the below string in the address bar and press enter.

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)

Tags:

Comments

( 5 comments — Leave a comment )
memeslayer
Nov. 30th, 2006 04:29 pm (UTC)
That's cool!

By the way, I searched for "flowers" and got Hitler art. Weird.
tenthz
Nov. 30th, 2006 04:40 pm (UTC)
The site you requested is blocked under the following categories: Hate Speech, Extreme

Lol. I'll have to look at that later, I guess.

Also, if you change the numbers in that javascript, you can make it do different things. :)

chinchillama
Nov. 30th, 2006 06:07 pm (UTC)
'tis cool but it crashed Safari! It locked up all the tabs and I couldn't make it stop!
It is a cool bit of mathyness though
tenthz
Nov. 30th, 2006 06:12 pm (UTC)
Ooh... *edits post to alert people* Thanks for the warning!
sajego
Nov. 30th, 2006 07:51 pm (UTC)
Awesome... amazing how much the web stuffs has changed. Used to have to use a script a mile long to do that kind of thing... I never wrote it myself.. just borrowed someone else's.

( 5 comments — Leave a comment )

Profile

blogging
tenthz
Catherine

Latest Month

December 2011
S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031
Powered by LiveJournal.com
Designed by Keri Maijala