need a simple code check please

wxdqz

New Member
hi, I am using this simple javascript that I got off the internet for multiple thumbnails that open in larger windows to show the full image. The problem is, when someone clicks on the thumbnail to view it for the first time, it works fine, it pops up in a new window that is the right size, however, if the click another image without closing the new window, the second image will pop up into the same window that the first image opened in, which will most likely not be the right size for the new pic. Here's my code, I'm assuming this is a simple fix, I just can't figure it out.
thanks,
-egan

<head>
<title>Shows</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openWindowfront() {
popupWin = window.open('front.htm', 'remote', 'width=300,height=299')
}
function openWindowdemo() {
popupWin = window.open('demo.htm', 'remote', 'width=200,height=200')
}
// done hiding -->
</SCRIPT>
</head>

then i call the functions like this:
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"javascript:openWindowfront('front.htm');"><img src=http://www.webdeveloper.com/forum/archive/index.php/"frontthumb.jpg" width="60" height="60" border="0"></a>

and

<A HREF="javascript:openWindowdemo('demo.htm');"><img src=http://www.webdeveloper.com/forum/archive/index.php/"demofrontthumb.jpg" width="60" height="60" border="0"></a>
 
Back
Top