The Grove Social Club Homepage
Forum Home Forum Home > Non Grove Related Stuff > Off Topic Forum
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login


Weird!

 Post Reply Post Reply Page  12>
Author
Message
kbannon View Drop Down
Admin Group
Admin Group
Avatar
87-92 (I think)

Joined: 17-August-2004
Location: Leixlip
Status: Offline
Points: 1135
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbannon Quote  Post ReplyReply Direct Link To This Post Topic: Weird!
    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
Back to Top
Sponsored Links


Back to Top
finno View Drop Down
Die Hard Grover!
 Die Hard Grover!
Avatar
�77 to 82ish

Joined: 21-September-2006
Location: Ireland
Status: Offline
Points: 3885
Post Options Post Options   Thanks (0) Thanks(0)   Quote finno Quote  Post ReplyReply Direct Link To This Post Posted: 07-November-2006 at 16:17
wow
A man must have a code
Back to Top
xgrovehead View Drop Down
Die Hard Grover!
 Die Hard Grover!

88/89 ish to 1992ish

Joined: 26-April-2005
Location: Dublin, Ireland
Status: Offline
Points: 2107
Post Options Post Options   Thanks (0) Thanks(0)   Quote xgrovehead Quote  Post ReplyReply Direct Link To This Post Posted: 07-November-2006 at 16:23
Maybe I wasn't patient enough - how long are you supposed to wait?
Back to Top
kbannon View Drop Down
Admin Group
Admin Group
Avatar
87-92 (I think)

Joined: 17-August-2004
Location: Leixlip
Status: Offline
Points: 1135
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbannon Quote  Post ReplyReply Direct Link To This Post 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).
Back to Top
xgrovehead View Drop Down
Die Hard Grover!
 Die Hard Grover!

88/89 ish to 1992ish

Joined: 26-April-2005
Location: Dublin, Ireland
Status: Offline
Points: 2107
Post Options Post Options   Thanks (0) Thanks(0)   Quote xgrovehead Quote  Post ReplyReply Direct Link To This Post Posted: 07-November-2006 at 17:00
feel nauseous now!

Edited by xgrovehead
Back to Top
kbannon View Drop Down
Admin Group
Admin Group
Avatar
87-92 (I think)

Joined: 17-August-2004
Location: Leixlip
Status: Offline
Points: 1135
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbannon Quote  Post ReplyReply Direct Link To This Post Posted: 07-November-2006 at 17:02
Im just brilliant!
Back to Top
Esthalon View Drop Down
Die Hard Grover!
 Die Hard Grover!
Avatar
86 - 90

Joined: 21-September-2006
Location: Rush, ex Marino
Status: Offline
Points: 2694
Post Options Post Options   Thanks (0) Thanks(0)   Quote Esthalon Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
eejit91 View Drop Down
Moderator Group
Moderator Group
Avatar
Grove Years 1979-1983-84ish

Joined: 12-October-2005
Location: Sometimes here and sometime
Status: Offline
Points: 8180
Post Options Post Options   Thanks (0) Thanks(0)   Quote eejit91 Quote  Post ReplyReply Direct Link To This Post 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."
Back to Top
irish_mammy View Drop Down
Die Hard Grover!
 Die Hard Grover!
Avatar
80-84 ish

Joined: 16-October-2006
Location: Perth Western Australia (ex
Status: Offline
Points: 3782
Post Options Post Options   Thanks (0) Thanks(0)   Quote irish_mammy Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Vinyl Junkie View Drop Down
Moderator Group
Moderator Group
Avatar
79-86 (roughly)

Joined: 18-August-2006
Location: Skerries, Dublin
Status: Offline
Points: 14121
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vinyl Junkie Quote  Post ReplyReply Direct Link To This Post Posted: 08-November-2006 at 09:22
That's brilliant!
TPFKAB (The Poster Formerly Known As Brunswick).
Back to Top
xgrovehead View Drop Down
Die Hard Grover!
 Die Hard Grover!

88/89 ish to 1992ish

Joined: 26-April-2005
Location: Dublin, Ireland
Status: Offline
Points: 2107
Post Options Post Options   Thanks (0) Thanks(0)   Quote xgrovehead Quote  Post ReplyReply Direct Link To This Post 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??

Back to Top
IanL View Drop Down
Senior Member
Senior Member
Avatar
81-84

Joined: 20-September-2006
Location: Mayo previously D3
Status: Offline
Points: 344
Post Options Post Options   Thanks (0) Thanks(0)   Quote IanL Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kbannon View Drop Down
Admin Group
Admin Group
Avatar
87-92 (I think)

Joined: 17-August-2004
Location: Leixlip
Status: Offline
Points: 1135
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbannon Quote  Post ReplyReply Direct Link To This Post 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);


Back to Top
xgrovehead View Drop Down
Die Hard Grover!
 Die Hard Grover!

88/89 ish to 1992ish

Joined: 26-April-2005
Location: Dublin, Ireland
Status: Offline
Points: 2107
Post Options Post Options   Thanks (0) Thanks(0)   Quote xgrovehead Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
Hayseed Dixie View Drop Down
Really Really Senior Member
Really Really Senior Member
Avatar
’79 - ’84 (approx)

Joined: 20-September-2006
Location: Ireland
Status: Offline
Points: 1722
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hayseed Dixie Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
irish_mammy View Drop Down
Die Hard Grover!
 Die Hard Grover!
Avatar
80-84 ish

Joined: 16-October-2006
Location: Perth Western Australia (ex
Status: Offline
Points: 3782
Post Options Post Options   Thanks (0) Thanks(0)   Quote irish_mammy Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Floyd View Drop Down
Die Hard Grover!
 Die Hard Grover!
Avatar
84 to 89 (ask Tonto)

Joined: 29-October-2006
Location: Sunny South East (formerly Artane)
Status: Offline
Points: 3978
Post Options Post Options   Thanks (0) Thanks(0)   Quote Floyd Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
freebird View Drop Down
Really Really Senior Member
Really Really Senior Member
Avatar

Joined: 09-September-2006
Location: Perth Western Australia
Status: Offline
Points: 1848
Post Options Post Options   Thanks (0) Thanks(0)   Quote freebird Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
monarch View Drop Down
I spend too much time here!!!
I spend too much time here!!!
Avatar
Oldest Grover 67-72?

Joined: 24-December-2006
Status: Offline
Points: 7725
Post Options Post Options   Thanks (0) Thanks(0)   Quote monarch Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
monarch View Drop Down
I spend too much time here!!!
I spend too much time here!!!
Avatar
Oldest Grover 67-72?

Joined: 24-December-2006
Status: Offline
Points: 7725
Post Options Post Options   Thanks (0) Thanks(0)   Quote monarch Quote  Post ReplyReply Direct Link To This Post Posted: 07-October-2011 at 00:03
There is a crack in everything ...... that's how the light gets in
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.307 seconds.