Instead of adding your layers as children of the relative layer, you might
try to get the relative layer's x and y position on the page and then use
those values as the coordinates for a moveTo() call in your onLoad function.
This is assuming you're able to hard code the relative div so that it exists
before the onLoad gets started. See this page
http://scottandrew.com/index.php?today/dhtml_w3c.html and scottandrew.com in
general for further details.

Your previous post mentioned something about things getting messed up in
Netscape after a resize. Having something like this after your
DynAPI.onLoad() function should take care of that:

DynAPI.onResize=function(){
        location.reload()
}


-bill



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Albani,
> Andrea
> Sent: Wednesday, December 27, 2000 3:25 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [Dynapi-Dev] precreation NS and IE
>
>
> Pascal,
>
> Since you are familiar with layer creation, perhaps you could help me.
> I would like to place layers relative to other objects in the
> page. How can
> I do this?
>
> I have tried putting a relative "DIV" in the page and then adding
> the layers
> as children. But on Nestcape 4, the layer is damaged when I resize the
> browser window.


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev

Reply via email to