I am trying the following code:

  DynAPI.onResize = function() {
    status="width="+DynAPI.document.getWidth()+"
height="+DynAPI.document.getHeight();
    CenterDynLayer(myLayer)
  }

  DynAPI.onLoad=function() {
    DynAPI.document.setBgColor('white')

    myLayer=new DynLayer(null,100,100,300,300,'#FFFF00')
    myLayer.setHTML('<center><a id="lnkEnter"
href="TasksMenu.html">Enter</a>')
    this.document.addChild(myLayer)
    CenterDynLayer(myLayer)
  }

  function CenterDynLayer(oDynLayer) {
 
oDynLayer.moveTo((oDynLayer.parent.getWidth()/2)-(oDynLayer.getWidth()/2),(o
DynLayer.parent.getHeight()/2)-(oDynLayer.getHeight()/2))
  } 

With IE there is no problem, but with Netscape the follwoing error is
raised:

JavaScript Error: dynacore/api/layer.js, line 198:

this.elm has no properties. 

The Netscape is 4.7 on a linux mandrake through x-win32 v5.1.1

Can anyone help me?

Thanks

Andreas


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

Reply via email to