[thelist] dom gives me a headache

Peter-Paul Koch gassinaumasis at hotmail.com
Sat Dec 15 07:36:30 CST 2001


>that doesn't help, i don't want the mouse position, i want the position of 
>the image so that i can *place* the menus where i want -- underneath the 
>fixed images

http://www.xs4all.nl/~ppk/js/index.html?findpos.html

>but now i'm getting nonsensical values for the image positions, like
>,6  -- but the images are nowhere near the top left corner of the window
>
>are offsetLeft and offsetTop relative to something?

Yes. Exactly to what they are relative depends on the situation (especially 
the position declaration in CSS) and the browser. See the page above for 
some more info.

ppk

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com





More information about the thelist mailing list