Just for fun (javascript)

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Just for fun (javascript)

Post by hawleyjr »

Just for fun. Try this:

Replace the URL of this page (Or any page with pictures) with the following JavaScript and hit enter:

Code: Select all

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()',5); void(0);
I found this here[url]


Edit: I added the emoticons to make it even better:

:arrow: :idea: :?: :!: :evil: :twisted: :roll: :wink: :cry: :oops: :P :x 8O :? 8) :lol: :o :( :) :D ImageImageImage
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

that's nuts
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

The Ninja Space Goat wrote:that's nuts
LOL, now it looks like my Pearl Jam pumpkin and your Tool Avatar are dancing..
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

awesome. I really liked trying to click the 'Post Reply' button as it was flying around the screen.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

that is hilarious. i put it into the forum with everyone's sigs and they went in a circle.

javascript is so cool. i should really learn

also, isn't that a huge security risk?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

MrPotatoes wrote:also, isn't that a huge security risk?
Not any more of a security risk than me adding Javascript via greasemonkey extension
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That was pretty mind blowing. You might want to preface that post with a

WARNING: IF YOU HAVE EPILEPSY DO NOT DO THIS!
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Everah wrote:That was pretty mind blowing. You might want to preface that post with a

WARNING: IF YOU HAVE EPILEPSY DO NOT DO THIS!
I have photosensitive epilepsy. However I don't see anything wrong with that... what's the concern regarding epilepsy? Just curious...
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Whoa...that was neato...

Trying to click reply was a challenge :P
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Trippin!

Very nice.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

scottayy wrote:
Everah wrote:That was pretty mind blowing. You might want to preface that post with a

WARNING: IF YOU HAVE EPILEPSY DO NOT DO THIS!
I have photosensitive epilepsy. However I don't see anything wrong with that... what's the concern regarding epilepsy? Just curious...
I used to work with a woman who was epileptic and was so sensitive to circular motion that she would seize within seconds of seeing something like that. Literally.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

KUDOS, THAT WAS FREAKING COOL!
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Everah wrote:I used to work with a woman who was epileptic and was so sensitive to circular motion that she would seize within seconds of seeing something like that. Literally.
Wow, scary!
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Yeah, especially when you don't know about it in advance and send her one of those 'visual conundrum' type of images where there are concurrent, cross-directional swirling vertigos. Yeah, that was, um what's the word... interesting.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

awsome!
Post Reply