From: Raymond I. <xw...@ya...> - 2003-04-02 20:44:59
|
Please see below: --- Benoit Marchant <mar...@ma...> wrote: > > On Wednesday, April 2, 2003, at 09:37 AM, Kevin > wrote: > > > See comments below: > > > > "Raymond Irving" <xw...@ya...> 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. Many thanks for the feedback. I've implemented the <ilayer> tag as suggested and it worked great. Please see the attached file for the updates to dynlayer_ns4.js > 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 I can't see why we should do a document.write() after the page has been loaded. Relative layers should/can only be created before the page loads, correct? Would it be of any value to create relative laters after the page loads? -- Raymond Irving > Benoit > > > > Kevin > > > >> > >> -- > >> Raymond Irving > >> > >> > __________________________________________________ > >> Do you Yahoo!? > >> Yahoo! Tax Center - File online, calculators, > forms, and more > >> http://tax.yahoo.com > > <relative1.zip> __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com |