Yes that's correct, I lifted this from Dan's dynduo tutorial:
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
winW = (ns4)? window.innerWidth-16 : document.body.offsetWidth-20
winH = (ns4)? window.innerHeight : document.body.offsetHeight
Richard
----- Original Message -----
From: "Jon McLennan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 7:40 PM
Subject: RE: [Dynapi-Help] NS Incorrect Size
> If I remember correctly, IE has a 20 px difference in the width of the
> window and the document. NS only has a 16 px diff. That would be why the
> calculations are 4 px off in NS.
>
> Jon
>
> -----Original Message-----
> From: Matthew A. Shirey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 14, 2001 10:20 AM
> To: Dynapi-Help (E-mail)
> Subject: [Dynapi-Help] NS Incorrect Size
>
>
> Hey all,
>
> I asked this question a couple days ago but I think it got lost inside
> of another similar discussion. My problem is that on NS 4.x
> document.getWidth() and document.getHeight() are reporting incorrect
> sizes. Each are consistantly off by 4 pixels. Is this something that
> has been fixed? Is there a workaround or should I just detect for the
> browser and make the corrections on my end? Thanks for any information.
>
> M.
>
> ============================================
> Matthew A. Shirey
> Software Engineer
> Center for Teaching, Learning, & Technology
> Washington State University
> E-Mail: [EMAIL PROTECTED]
> Office: 5-0476
> ============================================
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
> _______________________________________________
> 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