Can anyone help me explain the following subtly different behavior,
occuring in NS4:

I am changing text dynamically for an absolutely positioned layer
contained within a relatively positioned one.  When typed directly
into the code, both of the following methods work, and allow text
within the document flow to be changed:

METHOD 1

<ilayer name=outer>
        <layer name=face>some text</layer>
</ilayer>

METHOD 2

<div id="outer" style="position:relative">
        <div id="test" style="position:absolute">some text</div>
</div>

The problem emerges when saving the strings to variables
and then document.write()ing them into the html.  In this case,
Method 1 still works, whereas Method 2 treats the inner layer "test"
as absolutely positioned within the entire page, instead of as
absolutely positioned relative to its containing layer. Even worse,
the inner layer is no longer recognized as a document by the function
that dynamically changes its text:
"document.layers.outer.document.layers.test has no
properties."

Does anyone know anything about this?

Thanks,
Jonah



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

Reply via email to