The offsetTop property is the anchor's position to its parent element, which is
not the document itself but most likely a <td> <p> or another tag, thus you're
receiving an unexpected coordinate. I can't remember if there's a more suitable
property. Try using pixelLeft and pixelTop. If not you might have to travel up
the object hierarchy in order to get the anchor's position relative to the
layer.

Barbie wrote:

> I have been trying to get an example together for "jumpTo" anchor references
> within a document that is located within a DynAPI scrolling layer. It works
> great for Netscape as their anchor object holds the 'y' coordinate of the
> anchor in relation to the layer document.
>
> However, using offsetTop in IE gives some very strange results. It seems the
> offsetTop value has no bearing on anything. I have several anchor tags in
> the page and the all seem to return values of either 0, 15, 30 and 45, even
> though there are several anchors at least 1400+ pixels down the document.
> Has anybody come across a solution for something like this? I suspect this
> is something that doesn't specifically relate to DynAPI, but the anchor
> object itself within IE.
>
> Carlos, unfortunately your solution look like that you only need to
> reference the top of the page. If I'm wrong in my understanding of that let
> me know.
>
> All help grateful received.
>
> Barbie.
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to