getiing an objects position

wxdqz

New Member
Hi guys,
I have a page on which I have several images which are layed out using tables.
first a main table,this tables tr consists of another table and this table eventually have a td that has an image.
I know the width and height of images.
Main tables alignment is set to centre,therefore when window size is increased or reduced the layout is automatically adjusted.
Question is
At any given point( since all the settings are relative) how do I get the images distance from the left edge of the browser window,or top edge of the browser window.I have used object.offsetLeft but it gives me the distance from the immidiate parent,which in this case is a td,hence the result is always 0.

Thanks for help.
 
Back
Top