For one webpage of my website, there is a sidebar that I want to use to change the image on the page. I think I should be able to do it by giving the first link of the sidebar the tag and the second link and so on. This should add #1 or #2 to the end of the url without changing the page on which it is on (I think). Using this, would it be possible to change the image, depending on the ending of the url (maybe by setting the id of the first image to "#1" and the second "#2" etc. then somehow hiding all images except the one selected?
Sorry if I'm being unclear, what I basically mean is that the webpage will act like a template, but the url won't change, instead the hash anchor thingy will change, which will cause the image and text to change but nothing else.
Here is the links table:
<table>
<thead>Header</thead>
<tr>
<td>
<a href="#1">Link 1</a>
</td>
<td>
<a href="#2">Link 2</a>
</td>
</tr>
</table>
And the main CSS:
td a {
display:block;
height:100%;
width:100%;
}
Using this I want an array of images so that only one will show at a time, depending on the hash number after the url (or any other way which may work better).