waj_muller
10-23-2002, 01:36 PM
I am currently having a problem with resizing a window in IE6.
The browser fires a popup which opens in fullscreen mode and then resizes to a smaller size as to get rid of the menu bars and borders.
Works fine in IE5 but not in IE6 ,apparently IE6 has no defauly function for resizing when in fullscreen mode or something like that.
Is there a way around this or will i just have to settle with browser window borders.
Here is the code
This forst function actually does the work...
function launchSplashWin(contentType, contentString, width, height, left, top, autoCloseTime) {
var w = window.screen.width;
var h = window.screen.height;
var l = (left != null) ? left : (w-width)/2;
var t = (top != null) ? top : (h-height)/2;
var uri = (contentType.toLowerCase() == "uri") ? contentString : "";
splashWin = window.open(uri, '_splash', 'fullscreen=0;toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars= 0,resizable=0' );
splashWin.blur(); // Hide while updating
window.focus();
splashWin.resizeTo(width,height);
splashWin.moveTo(l, t);
splashWin.focus();
}
this part is what starts it all by calling the above function
window.blur ('popup1.asp');
launchSplashWin("uri", "popuphtms/popup.asp",450, 400, null, null, 1000)//
window.close('popup1.asp');
The browser fires a popup which opens in fullscreen mode and then resizes to a smaller size as to get rid of the menu bars and borders.
Works fine in IE5 but not in IE6 ,apparently IE6 has no defauly function for resizing when in fullscreen mode or something like that.
Is there a way around this or will i just have to settle with browser window borders.
Here is the code
This forst function actually does the work...
function launchSplashWin(contentType, contentString, width, height, left, top, autoCloseTime) {
var w = window.screen.width;
var h = window.screen.height;
var l = (left != null) ? left : (w-width)/2;
var t = (top != null) ? top : (h-height)/2;
var uri = (contentType.toLowerCase() == "uri") ? contentString : "";
splashWin = window.open(uri, '_splash', 'fullscreen=0;toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars= 0,resizable=0' );
splashWin.blur(); // Hide while updating
window.focus();
splashWin.resizeTo(width,height);
splashWin.moveTo(l, t);
splashWin.focus();
}
this part is what starts it all by calling the above function
window.blur ('popup1.asp');
launchSplashWin("uri", "popuphtms/popup.asp",450, 400, null, null, 1000)//
window.close('popup1.asp');