>>>> >  sh=screen.availHeight;
>>>> >  sw=screen.availWidth;
>>>> >  ch=document.body.clientHeight;
>>>> >  cw=document.body.clientWidth;
>>>> >  if(!cw){ch=sh-132;cw=sw-8}


ch = document.defaultView.
        getComputedStyle(document.body, "").getPropertyValue("height");
cw = document.defaultView.
        getComputedStyle(document.body, "").getPropertyValue("width");

Note that IE and mozilla have a difference of opinion as to how high the 
  <body> element is for documents that are shorter than the viewport. 
In IE the body is never shorter than the viewport, while in Mozilla it 
always follows the content size.



Reply via email to