[thelist] javascript question (easy?)

Mark Howells mark at mountain.ch
Thu Dec 13 10:28:42 CST 2001


I've been working on something that uses this type of requirement for a
floating layer today (http://www.mark.ac/help/sticky.html) and I asked the
same question of the Webdesign-l list (http://webdesign-l.com), just related
to DOM browsers. 

You have to take browser differences into account, as pixelTop isn't
recognised in all browsers. offsetTop and clientTop are two alternatives,
depending on the browser.

Try

http://www.google.com/search?hl=en&q=pixelTop+offsetTop+clientTop+

(this link might have wrapped)

Regards
Mark Howells
Working in a Winter Wonderland
http://www.mark.ac


> Von: AtdtXav <atdtxav at yahoo.com>
>
> how does one find an images absolute location (height,
> specifically) on a page?
> 
> I was trying document.images[0].style.pixelTop





More information about the thelist mailing list