Some days before I had the same problem. That's the solution I took (may not
be the best one, but it works)
Those places where you have <a name="eg"></a>, just create a link after:
<a href="javascript: void(null)"> </a>.
Then you have a link and if you read this.doc.links[x].y (in NS) or
.offsetTop (in IE), then you have the y position of that link (and thus the
a name reference) inside that layer (the one that you scroll). All you have
to do, then, is to set the ratio of the scrollpanel to got to that height.
I hope I'd helped you. I have and example if you are interesting in seeing
it.
> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]En nombre de Barbie
> Enviado el: miércoles, 18 de abril de 2001 16:51
> Para: [EMAIL PROTECTED]
> Asunto: [Dynapi-Help] <a href="#name"> problem
>
>
> This may be a known problem, but I've not seen a reference to it.
>
> I have a Label object within a ScrollPanel object. I then load a URL into
> the Label object. For most of the urls this works fine. However,
> there are a
> few pages with a reference to other items lower in the page, but
> clicking on
> the link either does nothing (NN) or moves the whole browser page to the
> position where the reference would be if the Label wasn't a clipped layer
> (IE).
>
> If there is an easy workaround for this, so that the scrolling layer
> automatically jumps to the correct reference, I would be
> eternally grateful.
>
> Cheers,
> 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