Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Website Design/Showcase (http://www.chiefdelphi.com/forums/forumdisplay.php?f=64)
-   -   I bet you guys wont try this (javascript = fun) (http://www.chiefdelphi.com/forums/showthread.php?t=49346)

Michael Hill 08-10-2006 02:28

I bet you guys wont try this (javascript = fun)
 
Go to google image search, and search for whatever you want (kittens, dogs, whatever)

Then type this into 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++}setInterv al('A()',5); void(0);

Gabe 08-10-2006 02:48

Re: I bet you guys wont try this (javascript = fun)
 
THAT IS SO COOL! :D :D :D

(one mistake: you left a space in between the word Interval. You spelled it Interv al.)

DCA Fan 08-10-2006 03:30

Re: I bet you guys wont try this (javascript = fun)
 
Wow that's crazy stuff.

Another good site to do this to is flickrleech.net

chris31 08-10-2006 09:02

Re: I bet you guys wont try this (javascript = fun)
 
Maybe its just me. But as a note, it moves so smoothly on FF, but in IE is TERRIBLE.

DonRotolo 08-10-2006 11:25

Re: I bet you guys wont try this (javascript = fun)
 
Wow, that's pretty wild. Makes me almost want to learn Javascript.

Don

Bill_Hancoc 08-10-2006 11:26

Re: I bet you guys wont try this (javascript = fun)
 
Very cool...i spent 10 minutes watching it on google Images and then decided i had other things to do

thegathering 08-10-2006 11:31

Re: I bet you guys wont try this (javascript = fun)
 
That is awsome :)

Elgin Clock 08-10-2006 12:23

Re: I bet you guys wont try this (javascript = fun)
 
Whoa... Freaky Fun!! Hmm.. gets idea. :D

Joe Matt 08-10-2006 12:25

Re: I bet you guys wont try this (javascript = fun)
 
Uh oh, Elgin has an idea.....

really cool, it works in Safari really well too!

Elgin Clock 08-10-2006 12:30

Re: I bet you guys wont try this (javascript = fun)
 
Quote:

Originally Posted by Joe Matt
Uh oh, Elgin has an idea....

:D


Yeah, and it works on CD in this thread great too.
There are green reputation dots floating around EVERYWHERE!!!

Arkorobotics 08-10-2006 12:38

Re: I bet you guys wont try this (javascript = fun)
 
Lol, I saw this on digg. It's awesome!!

TheOtherGuy 08-10-2006 14:06

Re: I bet you guys wont try this (javascript = fun)
 
now that is cool! I had no idea javascript was so fun!

Noah Kleinberg 08-10-2006 15:41

Re: I bet you guys wont try this (javascript = fun)
 
Awesome...

This one's cool too:
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.tan(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.tan(R*y1+i*y2+y3)*y4+y5}R+=.5}setInterval('A()',5); void(0);

Gabe 08-10-2006 16:01

Re: I bet you guys wont try this (javascript = fun)
 
Quote:

Originally Posted by Noah Kleinberg
Awesome...

This one's cool too:
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.tan(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.tan(R*y1+i*y2+y3)*y4+y5}R+=.5}setInterval('A()',5); void(0);

Weird. The same mistake as before, with a space in between the word Interval. You have to manually fix the word Interval.

Anyhow, it seems that the game is on, to see who has interesting java script for the rest of us to entertain ourselves with. :)

Schnabel 08-10-2006 16:07

Re: I bet you guys wont try this (javascript = fun)
 
I think it is funny seeing all of the "O"'s float with it.


All times are GMT -5. The time now is 16:38.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi