What HTML can I use to open the fullsized image from thumbnails onto a formatted page?

ziggyiguana

New member
I know the principals of thumbnails. What I would like to do is open the fullsized image by clicking on the thumbnail to another .html page embedded in my normal format. In other words, I don't want to create a page for every thumbnail to show it's full size version. Rather, I need html that allows me to open any given thumbnail on a single page as it's full sized counterpart. I assume this involves some kind of java script.

I also do not want to open the larger picture without any of the formatting (white page) like if you link it to "images/mypicture.jpg".

Thank you for your answers!
Update:

I believe I answered my own question.

<script type="text/javascript">
function change_pic(url)
{
document.getElementById('large_pic').src=url;
}
</script>

<h2><a href="images/1.png" onclick="change_pic(this.href); return false;"><img src="images/thumb1.png" alt="1"></a>

I believe this can be modified for use on multiple pages, although the html is intended to be used on the same page, where you click on thumbnails and change the picture.
 
Back
Top