Linking to same page different image
I have over 100 images I would like to display on their own page, but link to them from an index page.
Rather than have over 100 seperate pages can anyone think of a way to link to the same page but call the required image. This is an over simplification of what i'd like to do:
<a href = 'index.html' = 1.jpg></a> - Will open index.html and show 1.jpg.
<a href = 'index.html' = 2.jpg></a> - Will open index.html and show 2.jpg.
Is this possible?
Many thanks in advance.