How to get left and top (pixels) positions of a table in a page? and to position a "DIV" at the same location.
Posted on 2002-04-19
I use VBScript and ASP pages to generate the pages.
a specific table upper left corner is at the page in pixels.
I would also like to know how to place a DIV at the same pixelcoordinates that we found in the first place.
The reading and positioning of x,y pixels should be from the page upper left corner. Pixels (0,0).
The table is widthin a DIV tag and has an ID.
(<DIV ID="thisTable"><table> Tablecontent </table></DIV>
I would like it to work with both IE, NE and Opera.
(For NE: (4.08 and above)), (for IE and opera as far back as possible).
I allready got the code to detect what browser is beeing used.
Just want to be able to read the coordinates in pixels, and want to be able to position another "DIV" at excact that location....:-)
Example code please.