I'm curios about your solution ? (For each of the browsers you've done
it for. My target browser actually is "every browser" since it is a
public site. I. e. I'd like to realize it for as many browsers
possible. At least, want to test it for a while.) Thx!
D.
Pretty much took this and flew with it.
From:
http://www.howtocreate.co.uk/perfectPopups.html
function resizeWinTo( idOfDiv ) {
var oH = getRefToDivMod( idOfDiv ); if( !oH ) { return false; }
var oW = oH.clip ? oH.clip.width : oH.offsetWidth;
var oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return
false; }
var x = window; x.resizeTo( oW + 200, oH + 200 );
var myW = 0, myH = 0, d = x.document.documentElement, b =
x.document.body;
if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }
else if( d && d.clientWidth ) { myW = d.clientWidth; myH =
d.clientHeight; }
else if( b && b.clientWidth ) { myW = b.clientWidth; myH =
b.clientHeight; }
if( window.opera && !document.childNodes ) { myW += 16; }
x.resizeTo( oW + ( ( oW + 200 ) - myW ), oH + ( (oH + 200 ) - myH ) );
}
Trying to make that work when NOT using a div, as the author does, was
proving difficult because I couldn't seem to get the right height in BOTH
browser.
Here's what I posted last time about the height issue. Width didn't give me
nearly as hard a time. *LOL*
<URL:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8
&selm=MPG.1b60b117bb991f1989f9c%40nntp.lucent.com >
I suppose you could do checks for 0 values and whatnot to get it to at least
work in both NN and IE.
--