genesis16
10-08-2002, 02:24 PM
I have a query on the following script in which the 'maximise' button is greyed out in the pop-up window. I need to be able to allow the window to be either maximised or resized to allow for different content width/height (i.e. one use of the pop-up is for a flash video presentation which is currently cut in half. Any advice would be appreciated:
<script language="Javascript">
<!--
// Hide from old browsers
var p,MyPopup;
MyPopup=0;
// Call this as following example
// Note use of single and double quotes
// <a href="javascript:PopWin('xxxx.html')"
function PopWin(fname){
if (MyPopup && !MyPopup.closed) // if already open then close it
MyPop.close();
p="top=0,left=0,Width="; // set top and left start points
p += (screen.width-470); // adjust width here
p += ",height=";
p += (screen.height-130); // adjust height here
p += ",scrollbars=yes";
MyPopup = window.open(fname, 'mypage', p); // opens the file 'fname' and gives it a name
}
// End hide from old browsers
-->
</script>
Bill
<script language="Javascript">
<!--
// Hide from old browsers
var p,MyPopup;
MyPopup=0;
// Call this as following example
// Note use of single and double quotes
// <a href="javascript:PopWin('xxxx.html')"
function PopWin(fname){
if (MyPopup && !MyPopup.closed) // if already open then close it
MyPop.close();
p="top=0,left=0,Width="; // set top and left start points
p += (screen.width-470); // adjust width here
p += ",height=";
p += (screen.height-130); // adjust height here
p += ",scrollbars=yes";
MyPopup = window.open(fname, 'mypage', p); // opens the file 'fname' and gives it a name
}
// End hide from old browsers
-->
</script>
Bill