Hey, thanks for replying.
I cant seem to make this work, could you post a link to a working example?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
$(function() {
$('#thumbnails').click(function() {
$('#thumbnails img').hide();
var src = $(this).attr('src').replace('.jpg', 'Large.jpg');
$('#largeImage').attr('src', src).show();
});
$('#largeImage').hide().click(function() {
$(this).hide();
$('#thumbnails').show();
});
});
</script>
</head>
<body>
<div id="thumbnails">
<img src="images/thumbnail1.jpg" alt="" />
<img src="images/thumbnail2.jpg" alt="" />
<img src="images/thumbnail3.jpg" alt="" />
</div>
<img id="largeImage" src="" alt="" />
</body>
</html>