info about link
: Javascript Index : PHP : MySQL :
get element position
: Source : : Explanation : : Example : : Todo : : Feedback :

This is a paragraph with some text and an image floated to the right. This is a paragraph with some text and an image floated to the right. This is a paragraph with some text and an image floated to the right. This is a paragraph with some text and an image floated to the right.
Try to click both on normal text as well as on the text that is bold or written in italic

This is a table cell with a width of 50% And this is the other cell, also with a width of 50%
This is a div with a fixed width and height and the overflow property set to auto. The limited space in combination with the overflow property and the fact that this text is too lengthy to fit into the specified width and height will cause the scrollbars to appear and make the element scrollable.
When we now insert an image again like this: , you can change the position on the screen with the scrollbars, but the script will still be able to tell where it is. Just click it and see what happens

Click anywhere above this point and below the position (of the x and y coordinate) will be shown. Also, the background of the element you clicked will be changed to a grey color as an extra indication of what you have clicked.
(this only works for certain elements of course)

Positions:
X:
Y:
Element:
=[Disclaimer]=     © 2005-2012 Excudo.net