![]() Preserved Topic: x,y coordinates of an object (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Seattle, WA, USA |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() 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 |
![]() |
Paranoid (IV) Inmate From: Seattle, WA, USA |
![]() it's not working. I just tested it in IE6 with the following code: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: Seattle, WA, USA |
![]() 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. |