Solved

Displaying image in jsp doubt

Posted on 2011-09-14
2
280 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now