Member Panel


Sponsors and Ads

Live Tag Cloud

PC Forum PC Help Forum » Community » The Lounge » Crazy Websites? Flying images? cool java script :)

The Lounge - Crazy Websites? Flying images? cool java script :) posted in the Community forums; I found this code on the internet somewhere long ago, dont remember from where, but it is still valid and as cool so I thought I might share it. This ...

JOIN US NOW to remove these Ads

pc help forum number one in the search engines
Post New Thread  Reply
  #1  
Old 11-14-2007
faraz_k86's Avatar
Gold Member
 
Join Date: Jan 2006
Posts: 253
PC Experience: Experienced
faraz_k86 - See this Members User comments on their Profile page
Talking Crazy Websites? Flying images? cool java script :)

I found this code on the internet somewhere long ago, dont remember from where, but it is still valid and as cool so I thought I might share it.

This code works best in google images but it will have the same effect on any website.

To perform the flying images thing first go to Google Images, search for any image so that you get a result page full of images.

now in the address bar at the top copy and paste the following java code:

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.getElementsByTagName("img"); 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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

and press Enter, and watch the images fly.

Like I said this will work on any website.

Its a very cool effect, IMO

Source : SoftMall's Articles


  #2  
Old 11-16-2007
DarkLord7854's Avatar
The cake is a lie..
My PC
 
Join Date: Sep 2005
Location: Florida
Posts: 1,365
PC Experience: Of Epic Proportions.
DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page DarkLord7854 - See this Members User comments on their Profile page
Default Re: Crazy Websites? Flying images? cool java script :)

IE or FireFox? Doesn't seem to work for me =\


__________________
Don't forget to rate posts if you find them helpful
  #3  
Old 11-16-2007
Bugsey's Avatar
Moderator
My PC
 
Join Date: Aug 2006
Location: England
Posts: 1,219
PC Experience: Very Experienced
Bugsey - See this Members User comments on their Profile page Bugsey - See this Members User comments on their Profile page
Default Re: Crazy Websites? Flying images? cool java script :)

Works on FF for me


__________________
If anyone helped you in a certain way and u want to thank them, press the "Thanks" Button below the post.

Received help from PC Help Forum? How about helping us out by Donating, Every little bit helps us keep this great service!"

PCHF Prework -PCHF Rules
Gamerviews -New Forum out now
  #4  
Old 11-17-2007
faraz_k86's Avatar
Gold Member
 
Join Date: Jan 2006
Posts: 253
PC Experience: Experienced
faraz_k86 - See this Members User comments on their Profile page
Default Re: Crazy Websites? Flying images? cool java script :)

it is supposed to work on both FF and IE


  #5  
Old 11-17-2007
Pgh's Avatar
Pgh Pgh is offline
Moderator
My PC
 
Join Date: Jul 2006
Location: Hertfordshire, UK
Posts: 522
PC Experience: Experienced
Pgh - See this Members User comments on their Profile page Pgh - See this Members User comments on their Profile page
Send a message via AIM to Pgh Send a message via MSN to Pgh
Default Re: Crazy Websites? Flying images? cool java script :)

Haha, nice.

Hurts my eyes a bit though, lol.



Reply
New! Norton Internet Security 2008 – Download Now Click Here

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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] I Really NEED help! Java Script? Starwalker Windows XP/2000 32 07-09-2007 06:29 AM


All times are GMT +1. The time now is 01:07 AM.
Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2008 - PC Help Forum.com


Back to Top