AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CrAzY Images!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Ian



Joined: 15 Jul 2007
Posts: 1157
Location: Enterprise, Alabama

PostPosted: Fri Nov 09, 2007 12:12 am    Post subject: CrAzY Images! Reply with quote

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
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4012
Location: Pittsburgh

PostPosted: Fri Nov 09, 2007 1:17 am    Post subject: Reply with quote

it is!
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 721
Location: Florida

PostPosted: Fri Nov 09, 2007 3:53 pm    Post subject: Reply with quote

Wow, clicking 'Post Reply' was really tough...
_________________
[Join IRC!]
Back to top
View user's profile Send private message
icefreez



Joined: 15 May 2007
Posts: 36

PostPosted: Fri Nov 09, 2007 5:26 pm    Post subject: Reply with quote

Crazy lol. It takes all the Images on teh page and spins them around in a 3D sort of circle.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Fri Nov 09, 2007 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ian



Joined: 15 Jul 2007
Posts: 1157
Location: Enterprise, Alabama

PostPosted: Fri Nov 09, 2007 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 721
Location: Florida

PostPosted: Fri Nov 09, 2007 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1205
Location: USA

PostPosted: Sat Nov 10, 2007 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1205
Location: USA

PostPosted: Sat Nov 10, 2007 2:25 pm    Post subject: Reply with quote

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.....!! Laughing
_________________
Back to top
View user's profile Send private message
Ian



Joined: 15 Jul 2007
Posts: 1157
Location: Enterprise, Alabama

PostPosted: Sun Nov 11, 2007 11:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Dra_Gon



Joined: 25 May 2007
Posts: 206

PostPosted: Mon Nov 12, 2007 2:28 am    Post subject: Reply with quote

That is just plain freaky Laughing! 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
View user's profile Send private message Send e-mail
Laszlo



Joined: 14 Feb 2005
Posts: 4012
Location: Pittsburgh

PostPosted: Mon Nov 12, 2007 3:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Mon Nov 12, 2007 7:50 am    Post subject: Reply with quote

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

PostPosted: Mon Nov 12, 2007 11:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1205
Location: USA

PostPosted: Mon Nov 12, 2007 11:55 pm    Post subject: Reply with quote

It breaks on Firefox for me......1024x768 Screen Resolution.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group