Christylh8
IS-IT--Management
I have an issue with a pop up code. I wanted a pop up of a larger artwork image from a thumbnail to stay on top, open only one pop up instead of several and be the exact size of each image.
I got the "stay on top" part to work successfully, but the window will not resize itself to the uniquely specified sizes. For example, the first thumbnail I click, the windows sizes itself properly, but the second window maintains the same size of the previous pop up even though it needs to be bigger.
Can anyone help me out? Here's my code. Thanks so much!
Christy
<script language="JavaScript" type="text/JavaScript">
var PicWin = null;
function NewWindow (mypage,myname,w,h) {
LeftPosition = 0;
TopPosition = 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no';
PicWin = window.open(mypage,myname,settings);
PicWin.focus();
}
</script>
Call:
<td><div align="center"><a href="gordon.html" onclick="NewWindow(this.href,'PicWindow','504','315'); return false"><img src="Thumbnails/Gordon.gif" alt="[NASCAR] Jeff Gordon Ribbon" width="80" height="82" border="0"></a></div></td>
<td><div align="center"><a href="americana.html" onclick="NewWindow(this.href,'PicWindow','502','227'); return false"><img src="Thumbnails/Americana.gif" alt="[Six Flags] Americana" width="82" height="82" border="0" /></a></div></td>
I got the "stay on top" part to work successfully, but the window will not resize itself to the uniquely specified sizes. For example, the first thumbnail I click, the windows sizes itself properly, but the second window maintains the same size of the previous pop up even though it needs to be bigger.
Can anyone help me out? Here's my code. Thanks so much!
Christy
<script language="JavaScript" type="text/JavaScript">
var PicWin = null;
function NewWindow (mypage,myname,w,h) {
LeftPosition = 0;
TopPosition = 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable=no';
PicWin = window.open(mypage,myname,settings);
PicWin.focus();
}
</script>
Call:
<td><div align="center"><a href="gordon.html" onclick="NewWindow(this.href,'PicWindow','504','315'); return false"><img src="Thumbnails/Gordon.gif" alt="[NASCAR] Jeff Gordon Ribbon" width="80" height="82" border="0"></a></div></td>
<td><div align="center"><a href="americana.html" onclick="NewWindow(this.href,'PicWindow','502','227'); return false"><img src="Thumbnails/Americana.gif" alt="[Six Flags] Americana" width="82" height="82" border="0" /></a></div></td>