Anthony,
The following will work for you and center the window in the middle of the
users screen regardless of their resolution settings. I use this
interpolated into a table. You might try to be certain that the script
tags for this are between closing and opening TD or TR tags.
(take note of the line wraps):
<SCRIPT LANGUAGE="Javascript"><!--
function decision()
{
var iMyWidth;
var iMyHeight;
//gets top and left positions based on user's resolution so popup
window
is centered.
iMyWidth = (window.screen.width/2) - (295 + 10); //half the screen
width
minus half the new window width (plus 5 pixel borders).
iMyHeight = (window.screen.height/2) - (275 + 20); //half the screen
height minus half the new window height (plus title and status bars).
var popup_window_1 =
window.open('index.cfm?fuseaction=foo','popup_window_1','status,height=550,w
idth=590,resizable=yes,left=' + iMyWidth + ',top=' + iMyHeight +
',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',scrollbars=yes');
popup_window_1.focus();
} // -->
</SCRIPT>
<a href="javascript:decision()">
-Andy G.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.