Solved

Displaying image in jsp doubt

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

763 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