IT Community - Software Programming, Web Development and Technical Support

Select Thumbnail images and view the larger image

This is a discussion on Select Thumbnail images and view the larger image within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Can anybody help me out... User have to select several thumbnail images and should view the larger images....


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-07-2007, 08:55 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Question Select Thumbnail images and view the larger image

Can anybody help me out...

User have to select several thumbnail images and should view the larger images.
__________________
H2O

Without us, no one can survive..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 08:58 AM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 350
Venkat is on a distinguished road
Thumbs up Re: Select Thumbnail images and view the larger image

try out this code....

<html>
<head>
<style>
body {
background-color:#000000;
color:#E27907;
font-family:Verdana,Arial;
font-size:10pt;
letter-spacing:2;
}
.thumbNormal {
border:4px solid #000000;
}
.thumbSelected {
border:4px solid #ff0000;
}
</style>
<script language=javascript>
var lastID = 0;
function SelectImg(id) {
if (lastID > 0) {
document.getElementById(lastID).className = "thumbNormal";
}
document.getElementById(id).className = "thumbSelected";
document.getElementById(0).src = document.getElementById(id).src;
lastID = id;
}
function LoadTrigger() {
SelectImg(1);
}
window.onload = LoadTrigger;
</script>
</head>
<body>
Click a photo on the left to view full size.
<table border=0>
<tr>
<td valign=top>
<img id=1 class="thumbNormal" src="http://www.codetoad.com/images/3lio103.jpg" width=120 onclick="SelectImg(1)">
<br><img id=2 class="thumbNormal" src="http://www.codetoad.com/images/3lio20.jpg" width=120 onclick="SelectImg(2)">
<br><img id=3 class="thumbNormal" src="http://www.codetoad.com/images/3lion19.jpg" width=120 onclick="SelectImg(3)">
</td>
<td width=15> </td>
<td valign=top>
<img id=0 src="">
</td>
</tr>
</table>
</body>
</html>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing the Image file thumbnail view in ListView control using VC++ 6.0 prabhat.singh C and C++ Programming 0 01-17-2008 10:53 PM
How to select an element by id and swapping an image ? kingmaker HTML, CSS and Javascript Coding Techniques 2 10-27-2007 12:05 AM
How to create BMP thumbnail image in PHP? Jeyaseelansarc PHP Programming 2 10-13-2007 01:05 AM
How to create a Thumbnail Images even the users give in different ration in c#. H2o C# Programming 4 08-10-2007 01:00 AM
Align images relative to a particular image? oyu2o HTML, CSS and Javascript Coding Techniques 0 03-10-2007 10:30 PM


All times are GMT -7. The time now is 08:45 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0