Print Page | Close Window

Weird!

Printed From: The Grove Social Club
Category: Non Grove Related Stuff
Forum Name: Off Topic Forum
Forum Description: Discuss Anything off topic here - upcoming events etc.
URL: http://www.theGroveSocialClub.com/forum/forum_posts.asp?TID=303
Printed Date: 25-December-2024 at 17:34
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Weird!
Posted By: kbannon
Subject: Weird!
Date Posted: 07-November-2006 at 16:07
* copy this into the address bar of your browser (not an empty window!)

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);

* press enter
* press enter again (and again..) and see what happens


-------------



Replies:
Posted By: finno
Date Posted: 07-November-2006 at 16:17
wow

-------------
A man must have a code


Posted By: xgrovehead
Date Posted: 07-November-2006 at 16:23
Maybe I wasn't patient enough - how long are you supposed to wait?


Posted By: kbannon
Date Posted: 07-November-2006 at 16:34
its instant.
Copy the code and paste into the address bar of this page (not a new blank window).


-------------


Posted By: xgrovehead
Date Posted: 07-November-2006 at 17:00
feel nauseous now!


Posted By: kbannon
Date Posted: 07-November-2006 at 17:02
Im just brilliant!

-------------


Posted By: Esthalon
Date Posted: 07-November-2006 at 17:49

That's Mad!!! tried it on loadsa sites...totally Mad.

Now Killian the question is how on earth did you discover that???



-------------
Smoke me a kipper I'll be back for Breakfast!


Posted By: eejit91
Date Posted: 07-November-2006 at 17:55
I feel dizzy!!!

-------------
"Unless someone like you cares a whole awful lot, nothing is going to get better."


Posted By: irish_mammy
Date Posted: 08-November-2006 at 03:04
Excellent Killian,

-------------
Lesley

25th June - 25th July. Get organising my nights out. Child can stay in the car.

Grove 1980-1984


Posted By: Vinyl Junkie
Date Posted: 08-November-2006 at 09:22
That's brilliant!

-------------
TPFKAB (The Poster Formerly Known As Brunswick).


Posted By: xgrovehead
Date Posted: 08-November-2006 at 09:59

Originally posted by kbannon kbannon wrote:

Im just brilliant!

 

And so modest! 

Yeah as Esthalon asks - how did you discover that??



Posted By: IanL
Date Posted: 08-November-2006 at 10:00
Brings a new meaning to "putting your website into orbit"

Cool Killian !!

-------------
Ian - Grover '81-'84
Exiled to Mayo since 2005


Posted By: kbannon
Date Posted: 08-November-2006 at 10:25
Xg - I found it on another site. Its just a bit of JavaScript. Its fairly simple really:
javascript:
//assigns a value to R
R=0;
//assigns a value to x1
x1=.1;
//assigns a value to y1
y1=.05;
//assigns a value to x2
x2=.25;
//assigns a value to y2
y2=.24;
//assigns a value to x3
x3=1.6;
//assigns a value to y3
y3=.24;
//assigns a value to x4
x4=300;
//assigns a value to y4
y4=200;
//assigns a value to x5
x5=300;
//assigns a value to y5
y5=200;
//gets the info for each HTML <img> element
DI=document.getElementsByTagName("img");
//gets the number of img elements
DIL=DI.length;
//starts a function called A
function A() {
  //a for loop that runs from zero to i-DIL incrementing by 1 each time it loops
  for(i=0; i-DIL; i++){
    //assigns the style of the current img element to DIS
    DIS=DI[ i ].style;
    //makes the position style of the element absolute (fixed on the page)
    DIS.position='absolute';
    //assigns a left coordinate (distance from left in pixels) for the current img element
    DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+ "px";
    //assigns a top coordinate (distance from top in pixels) for the current img element
    DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+" px"
    //increments R by 1
    }R++
  }
//calls the above function every 5 milliseconds
setInterval('A()',5);
//returns null to prevent a new page opening
void(0);




-------------


Posted By: xgrovehead
Date Posted: 08-November-2006 at 11:41

Originally posted by kbannon kbannon wrote:

Its just a bit of JavaScript. Its fairly simple really:

For you maybe!



Posted By: Hayseed Dixie
Date Posted: 08-November-2006 at 11:48

Good for freaking out fellow office workers...especially when you don't tell them what you're doing..hehehe!!


-------------
Photographers deal in things which are continually vanishing and when they have vanished there is no contrivance on earth which can make them come back again. - (Henri Cartier-Bresson)


Posted By: irish_mammy
Date Posted: 08-November-2006 at 12:55

Sent it on to my friends.

Freaked them out and wouldn't tell them how I got it.

 



-------------
Lesley

25th June - 25th July. Get organising my nights out. Child can stay in the car.

Grove 1980-1984


Posted By: Floyd
Date Posted: 26-November-2006 at 14:31
I'm Trippin'!!!

-------------
There are three kinds of people in the world,those who are able to count,and those who can't...


Posted By: freebird
Date Posted: 27-November-2006 at 12:45
Must try it on some co-workers just as they are about to send a rush job to print


Posted By: monarch
Date Posted: 05-October-2011 at 19:17
Originally posted by kbannon kbannon wrote:

* copy this into the address bar of your browser (not an empty window!)

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);

* press enter
* press enter again (and again..) and see what happens


Weird or what!.

-------------
There is a crack in everything ...... that's how the light gets in


Posted By: monarch
Date Posted: 07-October-2011 at 00:03
http://www.youtube.com/watch?v=IT86xaR7ByE&feature=related" rel="nofollow - http://www.youtube.com/watch?v=IT86xaR7ByE&feature=related

-------------
There is a crack in everything ...... that's how the light gets in


Posted By: Grovegirl
Date Posted: 07-October-2011 at 18:36
Scary, Frank!

-------------
GG



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net