Hello,
I'm looking for the best script to use to display a larger image in its own window when its thumb is clicked. I am going to read the filenames for the 2 images from a database when the page loads so I will have access to the filename for the larger image.
How can I get the image to load into the new window?
This is what I'm working with so far:
<SCRIPT LANGUAGE="JavaScript">
function openWindow() {
window.open("LargerImage.htm",null,
"height=300,width=400,status=yes,toolbar=no,menubar=no,location=no");
}
</script>
<a href="#" onClick="openWindow(); return false">
<img src="thumb.bmp">
</a>
I'm looking for the best script to use to display a larger image in its own window when its thumb is clicked. I am going to read the filenames for the 2 images from a database when the page loads so I will have access to the filename for the larger image.
How can I get the image to load into the new window?
This is what I'm working with so far:
<SCRIPT LANGUAGE="JavaScript">
function openWindow() {
window.open("LargerImage.htm",null,
"height=300,width=400,status=yes,toolbar=no,menubar=no,location=no");
}
</script>
<a href="#" onClick="openWindow(); return false">
<img src="thumb.bmp">
</a>