[thelist] One popup window, different sizes

Erik Mattheis gozz at gozz.com
Thu Oct 13 00:55:38 CDT 2005


popWin= null;
function loadWindow(a,n,w,h) {
	if (!popWin || popWin.closed) {
// watch wrap of next line
		popWin = window.open(a,n,'width=' + w + ',height=' + h + 
',location=0,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0');
	}
	else {
		popWin.location = a;
		popWin.resizeTo(w,h);
		popWin.focus();
	}
return false;
}

On Wednesday, October 12, 2005, at 05:53 PM, Robert Carpenter wrote:

> I have some flash content (3 different swf's) that I'd like to display 
> in
> popup windows. Ideally, I'd like reuse the same window as the user 
> clicks
> the various links in the main opener window, but the swf's are 
> dramatically
> different in size, so I'd like the window to fit tightly to the 
> content as
> each new swf is loaded.



--
- Erik Mattheis
612 377 2272
http://gozz.com/



More information about the thelist mailing list