ShawnMolloy
MIS
Hi,
This script resizes the pop up window. There are two problems with it:
1) In FireFox there is a left and top margin...
2) In IE, sometimes the height the window resizes to is not the entire image height (sometimes 50%).
Shawn Molloy
Seattle, WA
This script resizes the pop up window. There are two problems with it:
Code:
<body leftMargin="0" topMargin="0" style="padding:0px;">
<form id="form1" runat="server">
<div>
<script language='javascript'>
function fitPic() {
if (window.innerWidth){
iWidth = window.innerWidth;
iHeight = window.innerHeight;
}else{
iWidth = document.body.clientWidth;
iHeight =document.body.clientHeight;
}
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
};
</script>
1) In FireFox there is a left and top margin...
2) In IE, sometimes the height the window resizes to is not the entire image height (sometimes 50%).
Shawn Molloy
Seattle, WA