Sizing and Positioning Pop Ups

liunx

Guest
I'd like to control the size and position of my pop ups. I'd like my window to open flush to the edges of the .swf within. I'd also like it to pop up in the center of the screen.<br />
<br />
Any help would be greatly appriciated...<br />
<br />
Phil<!--content--><html><br />
<head><br />
<title> centered popup </title><br />
<script language="JavaScript"><br />
<!--<br />
function dopopup()<br />
{<br />
var leftside=(window.screen.width/2)-100;<br />
var topside=(window.screen.height/2)-100;<br />
var chrome= "width=200," <br />
+ "height=200," <br />
+ "location=0," <br />
+ "menubar=0,"<br />
+ "resizable=0,"<br />
+ "scrollbars=0,"<br />
+ "status=0," <br />
+ "titlebar=0,"<br />
+ "toolbar=0,"<br />
+ "hotkeys=0,"<br />
+ "left="+leftside+","<br />
+ "top="+topside;<br />
x=window.open('somepage.htm',null,chrome);<br />
}<br />
//--><br />
</script><br />
</head><br />
<body onLoad="dopopup();x.focus();"><br />
content goes here!<br />
</body><br />
</html><!--content-->Thanks alot, that did it. Nice work.<br />
<br />
Take it ease, <br />
Phil<!--content-->That did help. Was a perfect solution. Thanks!!<!--content-->
 
Back
Top