Jeffrey Kretz schrieb:
Using jQuery 1.2.1, I wanted to get the window portal size for use in some
layer positioning.

I am able to obtain the correct width but NOT the correct height.

I use this function from Thickbox ;)

  function TB_getPageSize(){
    var de = document.documentElement;
var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
    arrayPageSize = new Array(w,h);
    return arrayPageSize;
  }

And then use this:


    var pagesize = TB_getPageSize();
    var win_w = pagesize[0];
    var win_h = pagesize[1];


--
Viele Grüße, Olaf

-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------

Reply via email to