Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Google Rolling Image Trick
Carson
post Sep 14 2007, 06:53 AM
Post #1


Super Member
*********

Group: [HOSTED]
Posts: 340
Joined: 29-April 07
Member No.: 42,353



You might already know this but it doesn't really matter....
OK this isnt a useful trick or something, its just something thats fun to see.

1. Goto Google

2. Click "images"

3. Type "jesus" or any other word

4. You will get a page which is full of images

5. Then delete the item from the address bar and paste the below script:
CODE
java script: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)


This post has been edited by Carson: Sep 19 2007, 07:01 AM
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Sep 19 2007, 04:48 AM
Post #2


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,434
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



I'm afraid this little trick does not work with Firefox... either that I have my security set too high smile.gif
Go to the top of the page
 
+Quote Post
Carson
post Sep 19 2007, 07:03 AM
Post #3


Super Member
*********

Group: [HOSTED]
Posts: 340
Joined: 29-April 07
Member No.: 42,353



Did it come up with a google search? I accidentally put a space in the word javascript, so it would not have worked. I edited the code in the first post, try it again. I'm using the latest version of Firefox, and it works for me. You can do this with any site, but on some sites the images just go out of place. It works well with the google image search though.
Go to the top of the page
 
+Quote Post
faund
post Sep 19 2007, 08:39 AM
Post #4


Advanced Member
*******

Group: Members
Posts: 128
Joined: 7-September 07
From: Ningbo, China
Member No.: 49,552



It does not work for me either IE or firefox.

It just get me to google search and get some result for me.

Maybe that's a bug and is fixed now.

This post has been edited by faund: Sep 19 2007, 08:40 AM
Go to the top of the page
 
+Quote Post
reconraiders
post Sep 19 2007, 04:17 PM
Post #5


Super Member
*********

Group: Members
Posts: 221
Joined: 6-June 07
Member No.: 44,288



wow! that's pretty sweet. It works for me! You just have to change "java script" to "javascript"
Go to the top of the page
 
+Quote Post
faund
post Sep 22 2007, 01:01 PM
Post #6


Advanced Member
*******

Group: Members
Posts: 128
Joined: 7-September 07
From: Ningbo, China
Member No.: 49,552



Yes! it works!
All images fly like a snake.

I followed your code made another one, try it if you are interest in.

CODE
java script:R=0; x1=0.01; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=600; 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.cos(R*x1*x2+i*x2+x3)*Math.cos(R*x1*x2+i*x2+x3)*x4; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0)

Go to the top of the page
 
+Quote Post
Saint_Michael
post Sep 22 2007, 01:15 PM
Post #7


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,305
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



you need to remove the space between java and script in order for this to work it should look like this:

CODE
java script: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 works in Firefox just not IE7 anyone try this on IE6?

I tried one myself talk about getting a seizure laugh.gif

CODE
java script:R=0; x1=0.01; y1=.05; x2=.15; y2=.24; x3=1.6; y3=.24; x4=1900; y4=1700; x5=100; 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.cos(R*x1*x2+i*x2+x3)*Math.cos(R*x1*x2+i*x2+x3)*x4; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0)


Funny I seen this post before but that was like in 2005 I think so that topic is long been buried in here. Also you don't have to do just Jesus you can do any image search since the script is about moving the images themselves and not what hte search is about.

This post has been edited by Saint_Michael: Sep 22 2007, 01:17 PM
Go to the top of the page
 
+Quote Post
midnightvamp
post Sep 22 2007, 02:18 PM
Post #8


Privileged Member
*********

Group: [HOSTED]
Posts: 575
Joined: 9-May 05
From: Oshawa, Ontario, Canada, North America, Planet Earth, Our Sun's Orbit, Milky Way Galaxy, The Universe, Beyond
Member No.: 6,839



Now that's interesting.... I tried both variations, and they worked for me in the latest firefox as well. The only thing I noticed with the second code though is when I tried to come over to this page to post my findings, I was unable to switch between tabs while the javascript was still running. So I had to refresh my page to stop the images. I was able to switch tabs fine while I ran the first code.

Still that's some pretty interesting pieces of javascript. I haven't delved too far into that whole language, and am hoping to learn more of what it can do soon smile.gif

Anyway, thanks for the neat trick wink.gif

Go to the top of the page
 
+Quote Post
FLaKes
post Sep 22 2007, 04:30 PM
Post #9


Trap Grand Marshal Member
***********

Group: [HOSTED]
Posts: 1,134
Joined: 19-May 05
From: Mexico
Member No.: 7,234



Wow, that is awesome. I was really getting frustrated at first because I was getting the google search, then I kept reading the whole thread and found out about the space. Guess you got to read all the instructions or the whole thread before you get the prize. Pretty neat effect.