| View previous topic :: View next topic |
| Author |
Message |
Ian
Joined: 15 Jul 2007 Posts: 1157 Location: Enterprise, Alabama
|
Posted: Fri Nov 09, 2007 12:12 am Post subject: CrAzY Images! |
|
|
You can use this on any web page with pictures on it. Simply go to the desired URL, and put in the following code (replacing the entire address):
| 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); (more) |
It will make the images go around in a circle. It's awesome! |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4012 Location: Pittsburgh
|
Posted: Fri Nov 09, 2007 1:17 am Post subject: |
|
|
| it is! |
|
| Back to top |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 721 Location: Florida
|
Posted: Fri Nov 09, 2007 3:53 pm Post subject: |
|
|
Wow, clicking 'Post Reply' was really tough... _________________ [Join IRC!]
 |
|
| Back to top |
|
 |
icefreez
Joined: 15 May 2007 Posts: 36
|
Posted: Fri Nov 09, 2007 5:26 pm Post subject: |
|
|
| Crazy lol. It takes all the Images on teh page and spins them around in a 3D sort of circle. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Fri Nov 09, 2007 5:32 pm Post subject: |
|
|
cool!
I imagine the effect is less impressive with larger images.
You almost don't realize how many small images give us info here in the forum. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Ian
Joined: 15 Jul 2007 Posts: 1157 Location: Enterprise, Alabama
|
Posted: Fri Nov 09, 2007 5:56 pm Post subject: |
|
|
| Yes, I went to someones blog on Tripod. They had quite a few large images. It was kind of a nuisance then. |
|
| Back to top |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 721 Location: Florida
|
Posted: Fri Nov 09, 2007 11:02 pm Post subject: |
|
|
Wow, this reminds me of some DHTML hack I used for my website years ago... Wayback has it here... Doesn't exacly look like it used to, but you get the idea... _________________ [Join IRC!]
 |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1205 Location: USA
|
Posted: Sat Nov 10, 2007 2:23 pm Post subject: |
|
|
You should at least give credit to where you picked this up.....Otherwise you'll have people thinking that you are a JS god or something...A google search for the code finds about 36,000 web pages using this, including a YouTube video.
It is cool though. _________________
 |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1205 Location: USA
|
Posted: Sat Nov 10, 2007 2:25 pm Post subject: |
|
|
| Rhys wrote: | | Wow, this reminds me of some DHTML hack I used for my website years ago... Wayback has it here... Doesn't exacly look like it used to, but you get the idea... |
The page goes crazy if you enter the JS on that page.....!!  _________________
 |
|
| Back to top |
|
 |
Ian
Joined: 15 Jul 2007 Posts: 1157 Location: Enterprise, Alabama
|
Posted: Sun Nov 11, 2007 11:05 am Post subject: |
|
|
| ahklerner wrote: | | You should at least give credit to where you picked this up.....Otherwise you'll have people thinking that you are a JS god or something... |
Haha, I wish.
Credits:  |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 206
|
Posted: Mon Nov 12, 2007 2:28 am Post subject: |
|
|
That is just plain freaky ! Thanks for bringing it to us! Now, can someone make a script using it? Just a thought.
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
SciFi/Fantasy Short Stories I wrote {StohlerWorlds I} >>
http://www.mediafire.com/?2yisetu0jud |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4012 Location: Pittsburgh
|
Posted: Mon Nov 12, 2007 3:14 am Post subject: |
|
|
| Dra_Gon wrote: | | someone make a script using it | Here you are... | Code: | #IfWinActive ahk_class IEFrame
#!z:: ; Activate with Win-Alt-Z
Send !d
SendInput,
( Join LTrim
{Raw}javascript:R=0;a=.1;b=.05;c=.25;d=.24;e=1.6;f=.24;g=300;h=200;x=300;y=200;DI=document.images;
DIL=DI.length;function Z(){for(i=0;i-DIL;i++){DIS=DI[i].style;DIS.position='absolute';
DIS.left=Math.sin(R*a+i*c+e)*g+x;DIS.top=Math.cos(R*b+i*d+f)*h+y}R++}setInterval('Z()',5);void(0);
)
Send {Enter} |
Edit 20071112: Continuation section added to prevent horizontal scrolling in some browsers
Last edited by Laszlo on Mon Nov 12, 2007 11:58 pm; edited 1 time in total |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Nov 12, 2007 7:50 am Post subject: |
|
|
| Laszlo wrote: | | (SendInput is one freakin’ long line…) |
...yes so split it into a continuation section...so it don't cause horiz scrolling on the forum!!!... |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4012 Location: Pittsburgh
|
Posted: Mon Nov 12, 2007 11:50 pm Post subject: |
|
|
| Anonymous wrote: | | split it into a continuation section...so it don't cause horiz scrolling on the forum!!!... | In my PC it does not (using IE7 or Firefox 2). What browser is affected? |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1205 Location: USA
|
Posted: Mon Nov 12, 2007 11:55 pm Post subject: |
|
|
It breaks on Firefox for me......1024x768 Screen Resolution. _________________
 |
|
| Back to top |
|
 |
|