Charas-Project
Off-Topic => All of all! => Topic started by: X_marks_the_ed on June 26, 2007, 04:42:47 PM
-
While surfing for random junk, I found this:
java script: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
1. Go to google image search and type in any old thing and hit search.
2. Copy the above code and paste it in the address bar. (REMOVE THE SPACE BETWEEN JAVA AND SCRIPT)
3. Hit enter or click to go button and watch what happens.
To stop it, close the window and re-enter google.
-
Even better, do this while viewing a thread. THE BUTTONS ARE ATTACKING!!!
-
You mean this is what'll happen? :corn:
-
Indeed.
-
Basically all it does is use the link syntax for executing Javascript (Why that even exists when there is onClick makes no sense) and then messes with the X and Y values of the image array - an array used to reference every image on a page.
In case you were wondering. :P
-
I wasn't, but thanks anyway.
-
Bahahaha, that's friggin awesome!
-
Yeah.
Nothing happened >_>
-
Originally posted by Fortet
Yeah.
Nothing happened >_>
You delete the space between Java and Script?
-
Originally posted by Osmose
Basically all it does is use the link syntax for executing Javascript (Why that even exists when there is onClick makes no sense) and then messes with the X and Y values of the image array - an array used to reference every image on a page.
In case you were wondering. :P
Huh?
-
Cool, but completely pointless.
-
Originally posted by Desimodontidae
Cool, but completely pointless.
Who ever mentioned it ever HAVING a point.
-
Originally posted by lucas_irineu
It is awesome! And pointless, now I have a reason for life! :p
GO LIFE! AND NOT THE CEREAL EITHER! YAY LIFE!
-
Warxe, any reason you just transformed into Ace of Spades? [/OMGOFFTOPIC]
As if this thread had a topic to begin with.
-
Originally posted by X_marks_the_ed
Originally posted by Fortet
Yeah.
Nothing happened >_>
You delete the space between Java and Script?[/B]
Yea
It gave me one of those quick search pages
-
Originally posted by Fortet
Originally posted by X_marks_the_ed
Originally posted by Fortet
Yeah.
Nothing happened >_>
You delete the space between Java and Script?[/B]
Yea
It gave me one of those quick search pages[/B]
You're using IE, get a real browser. One that will participate in this fun, unlike those google ads. Standing there like jerks.
-
No. I'm using FireFox. IE sucks. Big time. o_o
-
Originally posted by Fortet
No. I'm using FireFox. IE sucks. Big time. o_o
Then the only reason I can think of is that your Firefox is retarded.
-
Originally posted by Osmose
Basically all it does is use the link syntax for executing Javascript (Why that even exists when there is onClick makes no sense) and then messes with the X and Y values of the image array - an array used to reference every image on a page.
In case you were wondering. :P
To simply translate it to human language:
See it as M&Ms. Each colour of M&M represents a certain type or group. Now let's say that each M&M is also labeled / attached to a certain object group, like pens or books. The red M&Ms are the photos. To identify which red M&M belongs to which photo, a number is placed on each M&M, as well as each photo. The M&M with number one is attached to the photo which is labeled with number one.
Now let's say there are two sheets of paper with a grid. One small sheet, with squares the size of M&Ms, and one big grid, the size of the largest photo. Now we put each M&M at random on the small grid. Then we match both grids. If M&M one is in square two, then we put photo one in square two on the bigger grid. If M&M six is in square fourty, photo fourty is in square fourty on the big grid.
So, let's shuffle all the M&Ms again, and match the two grids again.
That's basically what Osmose said.
An array is a set of variables, or "labels", which have certain objects (mostly of the same type) attached. The images are all labeled by one variable (the colour of the M&M), but that variable has different records (the different labeled M&Ms), which point to certain objects. Because you now have a list of the same object, you can manipulate each object the same way by going trough every record (every number).
-
Say, people, I'll post the code without thew space to see if something happens.
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
No, nothing at all.