oups, sorry i answered before reading the origin of this thread. Nevermind!!
-----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Plennevaux Sent: samedi 20 octobre 2007 13:54 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Getting window portal size in 1.2.1 i think with jquery1.2.1 you can just do this: $(window).width(); $(window).height(); if not, you can do that using the dimensions.js plugin. -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Olaf Bosch Sent: samedi 20 octobre 2007 8:23 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Getting window portal size in 1.2.1 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 ------------------------------- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.488 / Base de données virus: 269.15.3/1081 - Date: 19/10/2007 17:41 Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.488 / Base de données virus: 269.15.3/1081 - Date: 19/10/2007 17:41