I don't actually see anything wrong just like that, maybe you can try
Hendrik Vaglin's layerpos widget, to compare the result;
See example here:
http://www.richardinfo.f2s.com/?menu=examples&node=7

Cheers,
Richard  :o

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)

----- Original Message -----
From: "GORTSILAS ANDREAS" <[EMAIL PROTECTED]>
To: "Dynapi-Help Mailing List (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 11:11 AM
Subject: [Dynapi-Help] Netscape problem


> 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
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from
> Namezero.com. New!  Namezero Plus domains now available.
> Find out more at: http://www.namezero.com
>


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

Reply via email to