I am working on a function that will enlarge an image when clicked on from a selection of 5 or more available images. The idea is that clicking on a small image will trigger the display of a larger version of that image in a frame.
Here is an example of the code for a small image:
<img src="Media//Gallery//img_1.jpg" onclick="showLarge();" alt="Gallery Image 1" />
And here is the placeholder for the larger image that will gain the source of the small image to be displayed:
<img name="largeImage" src="Media//Gallery//Image_1.jpg" alt="Large Image" />
This is my current JavaScript Function snippet:
<script type="text/javascript">
function showLarge() {
var largeFrame = document.getElementById("zoomedIn");
largeFrame.style.visibility='visible';
}
</script>
Thank you for any help or suggestions!