• Welcome to Dark Bit Factory & Gravity.
 

Bored? Java mini-demo!

Started by ferris, September 23, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

ferris

If you're ever bored, go to a site with lots of images (like this one, it works great ;) ) and enter this code into the adress 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++ }setInterval('A()',5); void(0)


Have fun kids!
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Voltage

That's freaky and cool.   >:D
Challenge Trophies Won:

Rbz

Challenge Trophies Won:

Tetra

Challenge Trophies Won:

benny!

Damn cool ... nice idea. I really like it !
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Shockwave

Shockwave ^ Codigos
Challenge Trophies Won:

ferris

This one'll creep people out:


javascript:im = document.images;iml = im.length;ix = new Array(iml);iy = new Array(iml);for(i = 0;i < iml;i++) {ix[i] = document.images[i].width;iy[i] = document.images[i].height;}function bounce() {for(i = 0;i < iml;i++) {ix[i] = ix[i] + 2;iy[i] = iy[i] + 2;document.images[i].width = ix[i];document.images[i].height = iy[i];}}setInterval('bounce()',10);void(0 )


It scales all images on a given page endlessly!
Muahahaha.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Shockwave

Shockwave ^ Codigos
Challenge Trophies Won:

benny!

Hehe ... wonder at which image-size my browser would crash  ::)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

ferris

I'm finding it's very addicting writing scripts that ruin someone else's hard html works  ;D
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

benny!

Quote from: thygrion on September 24, 2006
I'm finding it's very addicting writing scripts that ruin someone else's hard html works  ;D

lol :: your scripts are the worst nightmares for each webdesigner ;-)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Clyde

Sorry to be the thick one here; im sure they are wicked the effects etc, but where's the script code at dudes?
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

They are in the code boxes in Thygrions posts mate. Can you see them?
Shockwave ^ Codigos
Challenge Trophies Won:

Clyde

Nope, all I can see is a slider bar with the word Code above it
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

relsoft

Yeah, slider bar here too.
Challenge Trophies Won:

benny!

@Clyde+Relsoft:

seems to be a browser problem then. which browser do you use ?

here to un'coded' code :

Code#1

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)

Code#2

javascript:im = document.images;iml = im.length;ix = new Array(iml);iy = new Array(iml);for(i = 0;i < iml;i++) {ix = document.images.width;iy = document.images.height;}function bounce() {for(i = 0;i < iml;i++) {ix = ix + 2;iy = iy + 2;document.images.width = ix;document.images.height = iy;}}setInterval('bounce()',10);void(0 )


I prefer using these fx on a site like goole.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Clyde

Im using Internet Explorer 7.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

slinks

That probebly explains it. IE=hell I recomend firefox, and I'm sure I'm not the only one!
I love semi-colons way too much ^^;
Challenge Trophies Won:

benny!

Definately. I just read an aritcle about the IE7 in a rather good german computer magazine
( called iX ). It seems that there are still many bugs in it and a lot of fixes missing. Really
cannot understand why microsoft doesnt seem to be able to produce a better browser...

You should give an alternative a try. I recommend firefox, too.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

relsoft

Challenge Trophies Won: