BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 30d, 12h, 34m | CPU: 33% | MEM: 2366MB of 4531MB used
{The community for beta collectors}

Forum rules


Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it


Post new topic Reply to topic  [ 11 posts ] 
Author Message
 PostPost subject: Interesting piece of javascript        Posted: Sun Jan 21, 2007 12:33 am 
Reply with quote
Donator
Offline

Joined
Fri Aug 18, 2006 12:05 pm

Posts
698

Location
Or-stray-liagh
If you go to a site in Firefox or IE7, then copy the below into the address bar (as one line) and hit ENTER, fun things will happen with the site's graphics:

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

Best to try on a site with lots of images, like for example a Google image search:
http://images.google.com.au/images?hl=e ... rch+Images

_________________
pr0gram the pr0grammer
BetaArchive retiree | OSBA Expat


Top  Profile
 PostPost subject:        Posted: Sun Jan 21, 2007 12:38 am 
Reply with quote
Administrator
User avatar
Offline

Joined
Fri Aug 18, 2006 11:47 am

Posts
12410

Location
Merseyside, United Kingdom

Favourite OS
Microsoft Windows 7 Ultimate x64
:D thats cool!

_________________
Image

BetaArchive Discord: https://discord.gg/epK3r6A


Top  Profile  WWW
 PostPost subject:        Posted: Sun Jan 21, 2007 12:52 am 
Reply with quote
Staff
Offline

Joined
Sat Oct 14, 2006 12:05 am

Posts
786
After pasting it, pressing enter more will make them go round faster.


Top  Profile
 PostPost subject:        Posted: Sun Jan 21, 2007 1:29 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Tue Nov 28, 2006 11:39 pm

Posts
149
:shock: That is amazing, though rather pointless...

Wonder what else you can do with Javascript?


Top  Profile
 PostPost subject:        Posted: Sun Jan 21, 2007 1:31 am 
Reply with quote
Administrator
User avatar
Offline

Joined
Fri Aug 18, 2006 11:47 am

Posts
12410

Location
Merseyside, United Kingdom

Favourite OS
Microsoft Windows 7 Ultimate x64
JavaScript is quite powerful. This forum uses JS to display the "New PM Message" box (which FF stops unless you allow it).

_________________
Image

BetaArchive Discord: https://discord.gg/epK3r6A


Top  Profile  WWW
 PostPost subject:        Posted: Sun Jan 21, 2007 1:43 am 
Reply with quote
Donator
Offline

Joined
Sat Sep 30, 2006 5:00 pm

Posts
3557
Andy wrote:
JavaScript is quite powerful. This forum uses JS to display the "New PM Message" box (which FF stops unless you allow it).

Ah, that's why I have not been seeing them :)


Top  Profile
 PostPost subject:        Posted: Sun Jan 21, 2007 1:49 am 
Reply with quote
Administrator
User avatar
Offline

Joined
Fri Aug 18, 2006 11:47 am

Posts
12410

Location
Merseyside, United Kingdom

Favourite OS
Microsoft Windows 7 Ultimate x64
You should still get the "FireFox stopped a pop-up" yellow box whenever a pop-up tried to appear, unless you hit block for this site. I leave it to just show the yellow bar and that tells me Ive got a PM, since its the only time one will appear for this site.

_________________
Image

BetaArchive Discord: https://discord.gg/epK3r6A


Top  Profile  WWW
 PostPost subject:        Posted: Sun Jan 21, 2007 12:37 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Sat Aug 19, 2006 12:19 am

Posts
1915

Location
New Zealand
haha, thats crazy


Top  Profile
 PostPost subject:        Posted: Mon Jan 22, 2007 9:53 am 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Sep 04, 2006 1:06 pm

Posts
1004

Location
USA
Wow... that's amazing!

_________________
Old-Computer
BetaArchive VIP | Ex-OSBA Member


Top  Profile
 PostPost subject:        Posted: Mon Jan 22, 2007 10:06 am 
Reply with quote
Donator
User avatar
Offline

Joined
Thu Aug 24, 2006 8:03 am

Posts
1115

Location
Germany
this is old ;)

Jordan posted something like this some times ago on thehotfix :)

_________________
"Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why."


Top  Profile
 PostPost subject:        Posted: Tue Jan 23, 2007 1:38 am 
Reply with quote
Donator
User avatar
Offline

Joined
Thu Aug 31, 2006 2:45 pm

Posts
1432

Location
UK

Favourite OS
Longhorn 4074
Wow. Thats cool! i haven't seen it before...


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS