On Wednesday, April 2, 2003, at 09:37 AM, Kevin wrote:

See comments below:

"Raymond Irving" <[EMAIL PROTECTED]> wrote:
Hello,

I've managed to create the setPosition(p) function
which supports absolute, relative and fixed positions.

Yes this looks like what I had in mind. I'll need time to
work through it.

The insertChild() function was also modified from
insertChild(c,usebp) to insertChild(c,pos, usbp). For
Example:

dynapi.document.insertChild(lyr,'relative');

Please see the attached file for the new changes.

I can't get ns4 to work relative positions, could
someone take a look at the code to see if they can
help?

I had put together a raw example to show what I meant
as I thought Raymond and Benoit were talking only about
fixing an element in the window no matter what the scroll
bar is..

This example uses an <ilayer> to give the relative container
and the normal <layer> for the absolute positioned children
in ns4. Any ideas how this could this be used with the new
setPosition()?

The example is working great. What Raymond did should work, as long as getOuterHTML is updated for NS4 to output an iLayer if the position is relative.
Also, in _create for NS4, we could to test the position. If the position is relative, then the code would do a document.write() of the getOuterHTML

Benoit



Kevin

--
Raymond Irving

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
<relative1.zip>

Reply via email to