Preserved Topic: x,y coordinates of an object (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 03-08-2002 02:22
anyone know how to do this? BTW the object is a div tag that is relativley positioned, and I want to figure out the absolute x and y coordinates of it. Please help as soon as you can, it needs to be soon. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-08-2002 08:01 |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 03-08-2002 19:37
I seem to remember having problems with this in NN4 if you scroll the page. I can't remember the value exactly but I think it's like .document.pageScrollX and Y that you need to use (either add or subtract) if you're trying to get this position after someone has scrolled the page. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-08-2002 21:21 |
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 03-13-2002 03:31
it's not working. I just tested it in IE6 with the following code: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-13-2002 07:15 |
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 03-14-2002 07:02
muchas gracias!!!!!!!!!!! That made a big difference, as in it worked. I never knew there was a difference between NAME and ID, that's probably where I've had problems before. Once again thank you very much I couldn't figure it out. |