Solved

Displaying image in jsp doubt

Posted on 2011-09-14
2
282 Views
Last Modified: 2012-05-12
Hi Experts...
I have three images that i need to display in a comperssed format and on clicking one of the images i need to display in the display region as shown below.
Please help... sample template
0
Comment
Question by:gaugeta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36540732
try this one
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<style>
		#leftColumn
		{
			width:100px;
			height:400px;
			float:left;
		}
		#leftColumn .imageThumbnail
		{
			width:110px;
			height:110px;
			border:1px solid #000;
			margin-bottom:25px;
		}

		#leftColumn .imageThumbnail img
		{
			width:110px;
			height:110px;
		}

		#displayArea
		{
			width:400px;
			height:400px;
			float:left;
			margin-left:25px;
			border:1px solid #000;
		}
		#displayArea img
		{
			width:400px;
			height:400px;
		}
	</style>
	<script>
		function displayInMainArea(thisObj)
		{
			document.getElementById("displayArea").innerHTML = "<img src='" + thisObj.getAttribute("src") +"'>";
		}
	</script>
</HEAD>

<BODY>
	<div id="container">
		<div id="leftColumn">
			<div class="imageThumbnail"><img src="lastscan.jpg" onclick="displayInMainArea(this)"/></div>
			<div class="imageThumbnail"><img src="lastscan.jpg" onclick="displayInMainArea(this)"/></div>
			<div class="imageThumbnail"><img src="lastscan.jpg" onclick="displayInMainArea(this)"/></div>
		</div>
		<div id="displayArea"></div>
	</div>
</BODY>
</HTML>

Open in new window

0
 

Author Comment

by:gaugeta
ID: 36540782
@gurvinder372:Thanks a lot.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question