Page 1 of 2
Paste this into your browser and press enter.
PostPosted: Sun Oct 15, 2006 6:01 am
by Needle Noggin
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(%22img%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',5); void(0)
PostPosted: Sun Oct 15, 2006 6:21 am
by KBMaster
*raises eyebrow* What'll happen if I do?
PostPosted: Sun Oct 15, 2006 6:48 am
by Sync
Im not really versed in any programming but isnt that missing the formatting?
(does nothing when I tried to execute it)
PostPosted: Sun Oct 15, 2006 7:04 am
by Needle Noggin
It works. Just paste it into the URL bar and press enter.
PostPosted: Sun Oct 15, 2006 7:09 am
by samuraidragon
Interesting, if only there were someway to make it stop...
PostPosted: Sun Oct 15, 2006 7:10 am
by Needle Noggin
F5 works.
PostPosted: Sun Oct 15, 2006 7:22 am
by Mithrandir
I assume you mean it works in "whatever browser *I* happen to be using" because that will never work in any browser I use (admittedly that's only FF on a Mac, lol). What are you using, Internet Explorer on Windows XP? That's about all I can think of from what I've read here. I'm guessing that's why sync was saying it doesn't work (diff OS or 3rd party blocker).
As for formatting, this is javascript, not fortran. Formatting doesn't really matter all that much. From my briefest scan of the code, though, it looks like it would either draw a curve on the screen, corresponding to some mathematical function, or behave like one of those old functions we used to program into the Apple IIe boxes in the 80s. Of course, I have no way to verify that.
PostPosted: Sun Oct 15, 2006 7:26 am
by Warrior 4 Jesus
Ooh, it's awesome and works in FireFox too! Great work mate!
PostPosted: Sun Oct 15, 2006 7:26 am
by Warrior4Christ
I couldn't get it to work in Opera, Firefox, or IE7.
EDIT: Duh! Don't open it in a new tab, silly!
PostPosted: Sun Oct 15, 2006 7:29 am
by Warrior 4 Jesus
Weird? It worked for me. Nicked all the graphic images and swirled them around in a psuedo-spiral 3D circle pattern. Nice!
PostPosted: Sun Oct 15, 2006 7:55 am
by Mithrandir
Warrior 4 Jesus wrote:Ooh, it's awesome and works in FireFox too! Great work mate!
... *double take* ...
Firefox successfully rendered that javascript: tag?!? Well I'll be. *pastes it into the address bar under a new tab* Well, it doesn't work for me. Maybe you've got some IE-happifying extension (or maybe it just doesn't work on a Mac). Odd...
PostPosted: Sun Oct 15, 2006 7:57 am
by Nate
Mithrandir wrote:*pastes it into the address bar under a new tab*
Don't post it in a new tab. Post it in a current tab. It's kinda neat.
PostPosted: Sun Oct 15, 2006 8:00 am
by RobinSena
It works for me, and I'm using FF.. Pretty cool.
PostPosted: Sun Oct 15, 2006 8:04 am
by Mithrandir
OH!
document.getElementsByTagName(%22img%22) I totally read that as, "document.getElementsByTagName(%20img%20);" and completely misinterprited what it did.
Thanks kae.
*wanders off muttering something about the coders curse*
PostPosted: Sun Oct 15, 2006 8:12 am
by Warrior4Christ
[quote="Mithrandir"]OH! document.getElementsByTagName(%22img%22) I totally read that as, "document.getElementsByTagName(%20img%20)]
*knew 22h = 34 = " and 20h = 32 = (space) too*
I think I have the coder's curse too. And I think I read it as %20 the first time too...
PostPosted: Sun Oct 15, 2006 3:21 pm
by Slater
HAHAHAHA that was awesome
PostPosted: Sun Oct 15, 2006 3:45 pm
by Shao Feng-Li
Hey cool! *is mystified*
PostPosted: Sun Oct 15, 2006 4:29 pm
by Yumie
Ha ha, cool.
PostPosted: Sun Oct 15, 2006 4:36 pm
by Mr. SmartyPants
DANG that was awesome man! Thanks for sharing! (The picture was just put at random for no reason)
PostPosted: Sun Oct 15, 2006 5:44 pm
by FarmGirl
Oooh, 'tis spiffy, aye.
PostPosted: Sun Oct 15, 2006 5:47 pm
by Photosoph
That's neat! Lol, and the links to the images are still intact... ^^
*Is confuzzled by the programming lingo* o_O But don't mind me. I actually like being confused by programming terms. ^^ Though I'm not sure why.
PostPosted: Sun Oct 15, 2006 6:15 pm
by jon_jinn
wow. that's really cool.
PostPosted: Sun Oct 15, 2006 6:28 pm
by Myoti
*EDIT*
PostPosted: Sun Oct 15, 2006 6:29 pm
by Myoti
(Seemed fitting after MSP did it. Tis great, though. XD )
And sorry. Seems I clicked "Reply" instead of "Edit." Please delete the above post.
PostPosted: Sun Oct 15, 2006 7:51 pm
by meboeck
Neat!
PostPosted: Sun Oct 15, 2006 7:53 pm
by SorasOathkeeper
That's awesome!
PostPosted: Sun Oct 15, 2006 8:09 pm
by Yahshua
Very interesting indeed.
PostPosted: Sun Oct 15, 2006 8:10 pm
by HisaishiFan
Worked great in Firefox. Very fun!
PostPosted: Sun Oct 15, 2006 9:13 pm
by Tenshi no Ai
Amusing... sent it to my friend and she is SO amusing herself with it as I type^^ ...and that baby turtle is cute^^
PostPosted: Sun Oct 15, 2006 9:24 pm
by ChristianKitsune
haha that's awesome!! ^_^ how did you do that?!