Interesting Javascript

  • Thread starter Thread starter kranzx
  • 29 comments
  • 1,601 views
Messages
171
Copy and paste the whole thing to your address bar. Try with webpage with a lot of pics 👍

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)
 
It hung my computer, and took a moment to unlock, but it was odd.

I'd hate to do that on www.worth1000.com

I'd lose my lunch.
 
It just jumbled everything up on mine. Didn't look very good.
 
In Firefox it didn't work. In IE it does.

Pretty cool. I have a whirlwind of emoticons whizzing around my screen. :dopey:
 
G.T
In Firefox it didn't work. In IE it does.

Pretty cool. I have a whirlwind of emoticons whizzing around my screen. :dopey:
:bowdown:

We got this through the email a week or two back.

Try it on a Google Image Search - good stuff.

This is a very cool little feature! I never knew you could run JavaScript from the address bar. :crazy:
 
GT
In Firefox it didn't work. In IE it does.
This one works in both IE and Firefox:
HTML:
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);

And it runs faster.
 
Interestingly, it shows up the layers used on a web page.

If used on this thread here (or any GTP thread) the GTP logo will move behind the 'Message Boards' button in the menu bar.

Interesting?

Edit: And, new pictures get added to the rotation - I just submitted this post with Quick Reply, and now there are two 'Piggles' flying around up there.

More interesting?
 
That is so cool!
Try this on for size:
:) :dopey: :crazy: :nervous: :sick: :guilty: :grumpy: :dunce: :drool: :O ;) :lol: :mad: :confused: :irked: :cool: :boggled: 🤬 :sly: :scared: :ouch: :indiff: 💡 :yuck: 👍 👎 :( :D :p :rolleyes: :eek: :odd: :trouble: :bowdown: :cheers:

Everyone should try to put tons of emotions to make a huricane of faces
 
This is pretty cool, :lol: not to mention a nice bit of code. Good job on coming up with a Firefox version, Toronado! I can't actually see any difference in the codes, but one works and one doesn't so there we go. :rolleyes:

On this page, it makes our avatars looks so funky :D

View usedHONDA's wall-of-smileys post as a single, then fire in the code. Except for the avatar, it's pretty close to the hurricane of faces you had in mind. :dopey:

EDIT - For some odd reason, this disables my centre-button scroll - normally when I click down my mouse wheel, a scroll-with-the-cursor system is enabled (pretty familiar to most of you, I imagine). Now, it still displays the little icon and the cursor for it, but doesn't actually scroll. :odd: Firefox also doesn't like me clicking in order to chage tabs, now making me use CTRL-TAB to do so. Very strange pair of glitches there.

DE
 
EDIT - For some odd reason, this disables my centre-button scroll - normally when I click down my mouse wheel, a scroll-with-the-cursor system is enabled (pretty familiar to most of you, I imagine). Now, it still displays the little icon and the cursor for it, but doesn't actually scroll. :odd: Firefox also doesn't like me clicking in order to chage tabs, now making me use CTRL-TAB to do so. Very strange pair of glitches there.
Mine has niether of those problems. Hmm...
 
This is really cool. I typed cars in google images, then pasted the java in the URL bar & got this:
Exept it was moving.
I got this using the FireFox one on this page:
Exept it was moving.

I also noticed it takes all the images but the badges off the page to do this:
Wierd.
 
I found it works best at place like Alienware where there are multiple sizes of images:
 
EDIT - For some odd reason, this disables my centre-button scroll - normally when I click down my mouse wheel, a scroll-with-the-cursor system is enabled (pretty familiar to most of you, I imagine). Now, it still displays the little icon and the cursor for it, but doesn't actually scroll. :odd: Firefox also doesn't like me clicking in order to chage tabs, now making me use CTRL-TAB to do so. Very strange pair of glitches there.

DE

Yeah i get both of those in Firefox v2.0b. I think it got worse the more times i used the javascript code, so i guess it uses up some of the programs vital resources or something like that. The effects only seem to last for a minute or so before returning to normal.
 
I'm getting the same trouble as DE and donbenni with Tornado's code.
I can't change tabs, and it also removes all avatars from the page.
Odd indeed.
 
I'm running Firefox 1.5.0.7 and no longer getting either of the problems I described. Very strange that it's working normally now, it scrolls slowly but it does do it. Most odd. :odd:
Which version are you using, Toronado? Oh, never mind, looking at your screenshot gives me my answer. :dopey:

donbenni
Yeah i get both of those in Firefox v2.0b. I think it got worse the more times i used the javascript code, so i guess it uses up some of the programs vital resources or something like that. The effects only seem to last for a minute or so before returning to normal.
Interesting, I haven't tried it more than once so I can't judge. I also didn't wait more than two or so minutes before disabling it by reloading the page, so I also can't judge whether it's a permanent effect or not. It seems unlikely to me that these glitches will 'fix' themselves after a short period of time.

Mine doesn't remove the avatars like &#946;en's, though (it uses them in the rotation).

DE
 
Hey, mine is working now too :odd:
I'm using FF 2.0 RC3. What it was doing originally was slightly dislodging all images and slowing everything down, along with what is in my previous post.
I saw it in IE after FF didn't work and I can say cool, great find!

EDIT: Ace, I just noticed if you click a picture as it's floating it takes you to where it is sourced/linked to or from.
Very cool indeed 👍
 
It hung my computer, and took a moment to unlock, but it was odd.

I'd hate to do that on www.worth1000.com

I'd lose my lunch.



That is so cool!
Try this on for size:
:) :dopey: :crazy: :nervous: :sick: :guilty: :grumpy: :dunce: :drool: :O ;) :lol: :mad: :confused: :irked: :cool: :boggled: 🤬 :sly: :scared: :ouch: :indiff: 💡 :yuck: 👍 👎 :( :D :p :rolleyes: :eek: :odd: :trouble: :bowdown: :cheers:

Everyone should try to put tons of emotions to make a huricane of faces

[/IMG]

edit: now FireFox is screwed up, and my text looks huge, i'll try reloading the page

edit2: ah, that's better
 
This is the best one I've come up with, doing what I mentioned in Post #9 with usedHONDA's post...

screenie43lu7.png


Looks pretty cool on rotation, runs really smoothly too.

DE
 
Pretty neat effect.
 
This is the best one I've come up with, doing what I mentioned in Post #9 with usedHONDA's post...

screenie43lu7.png


Looks pretty cool on rotation, runs really smoothly too.

DE

wtf!?:confused: as the pic in the post above you, it didn't work on mine:(, i'm using FF 1.5

edit:

:cheers: :bowdown: :banghead: :trouble: :odd: :eek: :rolleyes: :p :D :( 👎 👍 :yuck: 💡 :indiff: :ouch: :scared: :sly: :) :dopey: :crazy: :nervous: :sick: :guilty: :grumpy: :dunce: :drool: :O ;) :lol: :mad: :confused: :irked: :cool: :boggled: 🤬 :cheers: :bowdown: :banghead: :trouble: :odd: :eek: :rolleyes: :p :D :( 👎 👍 :yuck: 💡 :indiff: :ouch: :scared: :sly: :) :dopey: :crazy: :nervous: :sick: :guilty: :grumpy: :dunce: :drool: :O ;) :lol: :mad: :confused: :irked: :cool: :boggled: 🤬:cheers: :bowdown: :banghead: :trouble: :odd: :eek: :rolleyes: :p :D :( 👎 👍 :yuck: 💡 :indiff: :ouch: :scared: :sly: :) :dopey: :crazy: :nervous: :sick: :guilty: :grumpy:

damn, you can only use 100 images:gru mpy:

can someone test it for me because it doesn't want to work for me: (
 
:drool:

i never knew that page existed

edit: i missed the one that works with FF:dunce:

nopity.gif
just had to test it:D
 
Bleugh, I just tried with all the smilies on this page too, I'm running FireFox 2 Final and it works great 👍

Screeny, it had the two other screenshots on the page going too :indiff:
 
right, time for the ultimate picture huricane. All the pics on this page put together. Well I'm barely gonna do it without more pics!

:) :dopey: :crazy: :nervous: :sick: :guilty: :grumpy: :dunce: :drool: :O ;) :lol: :mad: :confused: :irked: :cool: :boggled: :boggled: :boggled: :boggled: 🤬 🤬 🤬 🤬 :cheers: :cheers: :cheers: :cheers: :bowdown: :bowdown: :bowdown: :bowdown: :banghead: :banghead: :banghead: :banghead: :trouble: :trouble: :trouble: :trouble: :odd: :odd: :odd: :odd: :eek: :eek: :eek: :eek: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :p :p :p :p :D :D :D :D :D :D :D :D :( :( :( :( 👎 👎 👎 👎 👍 👍 👍 👍

This is gonna be good! EDIT: Oh damn to many images.👍 :guilty: :indiff: :crazy: :sly: :scared: :scared: :scared: :scared: :scared: :scared: :scared: :scared: :scared: :scared: :scared: :scared: :nervous:

Here we go!:
 
&#946;en;2461406
Bleugh, I just tried with all the smilies on this page too, I'm running FireFox 2 Final and it works great 👍

Screeny, it had the two other screenshots on the page going too :indiff:

that's my avatar:grumpy:

:D


mayhem!!!!1!!!!!!!111!!!!!!1!!
 
Back