dispalying images in jsp
Hello Sir,
I am making my project in struts and java.
I am successfully uploading 2 images simultaneously, one is small and other is large image of this small image.
Now i want that on clicking small image large image should open in a new window.
Which concept should i use.
Plz help me in this.
I need this urgently.
Thanx in advance.
# 2
<script>
function viewLargeImage()
{
testwindow= window.open ("ViewLargeImage.jsp", "mywindow","location=1,status=1,scrollbars=1,width=200,height=200");
testwindow.moveTo(100,100);
}
</script>
<img src="test1.jpg" onclick="viewLargeImage();">
in ViewLargeImage.jsp
<html>
<body>
<img src="test2.jpg">
</body>
</html>
# 4
use thumbnails on the overview page
so on overview you get:
alot of <img src="thumb_xxxxpicture.jpg" /> linking to a bigger picture without the "thumb_" in front of it
you will have to create 2 seperate pictures for each though (a thumbnail and the normal picture), but if you load the bigger picture into a smaller frame it will have no use since it will load the total amount of the picture anyways