ComputerForum.com ComputerForum.com  
TigerDirect
 
Go Back   Computer Forum > Internet > Internet Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 10-10-2007, 05:45 PM   #1 (permalink)
banned
 
Join Date: Jan 2007
Location: Vista the best place to live :D
Age: 15
Posts: 1,773
Default cool javascript trick

Got to a web page with lots of images on it. (A page of google images works well, but display a large number of thumbnails on one page)

Enter the following text into the URL box (where it says www.google.com or whatever page you're on)

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++}setInterv al('A()',5); void(0)
Push "enter"

Don't stare at it too long.

To exit, just push the "back" button or close your browser.
Jabes is offline   Reply With Quote


Old 10-11-2007, 09:07 AM   #2 (permalink)
Bronze Member
 
Join Date: Feb 2007
Posts: 61
Default

somethings wrong with the code, isnt it suposed to make the pictures float around or something.
thedarksun is offline   Reply With Quote
Old 10-11-2007, 09:19 AM   #3 (permalink)
banned
 
Join Date: Aug 2007
Age: 23
Posts: 214
Default

apparently it only works on Safari?

Last edited by Short Ram Air; 10-11-2007 at 09:21 AM.
Short Ram Air is offline   Reply With Quote
Old 10-11-2007, 09:20 AM   #4 (permalink)
banned
 
Join Date: Aug 2007
Age: 23
Posts: 214
Default

wait, here you go:

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++}setInterv al('A()',5 ); void(0)

but take out the space between Javascript and the colon
Short Ram Air is offline   Reply With Quote
Old 10-11-2007, 09:59 AM   #5 (permalink)
Diamond Member
 
patrickv's Avatar
 
Join Date: Jul 2006
Location: Soul Chamber
Posts: 5,556
Default

nopes, doesn't work for me
__________________
Laptop: Thinkpad X60: Core2Duo T7200 @ 2Ghz,1GB DDR2,110GB SATA -winXP ProSP2
Work Desktop: Core Duo E2180 @ 2Ghz,1.5GB DDR2,240GB HD - XP PRO SP2
patrickv is offline   Reply With Quote


Old 10-11-2007, 10:39 AM   #6 (permalink)
Administrator
 
apj101's Avatar
 
Join Date: Apr 2005
Location: London
Age: 26
Posts: 9,166
Default

nope
__________________
What did one snow man say to the other?
can you smell carrot?

The fight is won or lost far away from witnesses - behind the lines, in the gym, and out there on the road, long before I dance under those lights.

How you do anything, is how you do everything!
apj101 is offline   Reply With Quote
Old 10-11-2007, 11:54 AM   #7 (permalink)
Moderator
 
oscaryu1's Avatar
 
Join Date: Apr 2007
Location: Houston, Texas
Age: 13
Posts: 10,142
Default

Nope sorry. (neither one)
__________________

Core 2 Duo E2140 1.6GHz @ 3.04GHz
GA-P31-DS3L
pqi Turbo CL4 DDR2-800 2GB
Sapphire HD3850 256MB
Sony Writemaster DVD Burner EIDE
Seagate Barracuda 80GB 7200.9 8MB SATII
oscaryu1 is offline   Reply With Quote
Old 10-11-2007, 12:49 PM   #8 (permalink)
New Member
 
softwarefreak's Avatar
 
Join Date: Oct 2007
Posts: 8
Default

dont work for me either and i wanted to see the pictures float...wahhhhh
__________________
Yours Truly
softwarefreak is offline   Reply With Quote
Old 10-11-2007, 01:05 PM   #9 (permalink)
banned
 
Join Date: Jan 2007
Location: Vista the best place to live :D
Age: 15
Posts: 1,773
Default

here we go srry hope this one works but you can't do it on here do like a google image search and then do it

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++}setInterv al('A()',5); void(0)

Last edited by Jabes; 10-11-2007 at 01:09 PM.
Jabes is offline   Reply With Quote
Old 10-11-2007, 01:20 PM   #10 (permalink)
Administrator
 
apj101's Avatar
 
Join Date: Apr 2005
Location: London
Age: 26
Posts: 9,166
Default

nope
__________________
What did one snow man say to the other?
can you smell carrot?

The fight is won or lost far away from witnesses - behind the lines, in the gym, and out there on the road, long before I dance under those lights.

How you do anything, is how you do everything!
apj101 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cool trick (for your car) Trizoy Off Topic Chat 34 03-05-2007 02:20 AM
My forsale thread... codeman0013 Computer Equipment For Sale 0 03-04-2007 07:26 PM
To Water cool or not to water cool... flashoveride Desktop Computers 1 12-23-2006 11:45 AM
How do you turn on JavaScript? Or the problem with Adobe not working? TheFrustrated General Software 2 09-26-2006 08:52 AM
Cool custom cases Sparticle Computer Cases, Power Supplies and Cooling 20 11-01-2004 11:22 PM



All times are GMT +1. The time now is 08:11 PM.


Powered by: vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2002-2008 Computer Forum and Web Design Forum