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!
That's freaky and cool. >:D
Very nice :D
Thats Awesome!
Damn cool ... nice idea. I really like it !
Cool :)
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.
:)
Hehe ... wonder at which image-size my browser would crash ::)
I'm finding it's very addicting writing scripts that ruin someone else's hard html works ;D
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 ;-)
Sorry to be the thick one here; im sure they are wicked the effects etc, but where's the script code at dudes?
They are in the code boxes in Thygrions posts mate. Can you see them?
Nope, all I can see is a slider bar with the word Code above it
Yeah, slider bar here too.
@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.
Im using Internet Explorer 7.
That probebly explains it. IE=hell I recomend firefox, and I'm sure I'm not the only one!
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.
Awesomeness!!!
Very nice Benny. I didnt even know this was possible. Thanks for sharing. I'd be happy to see more...
Just to make this clear. I just reposted the code. Its not mine .. (unfortunately ;-) ).
thygrion did it !!!!