I have made a gallery.php. The code is as follows:
<div id="galleryImage">
<ul>
<li>
<a href= "gallery.php?imgName='artistvan'">
<img src="thumbnail/artistvan.jpg" title="The artist van" alt="The artist van"/></a>
</li>
....
....
</ul>
</div>
I have kept 25 li tag for 25 images.
The thumnails are on the right hand side of the div tag. When a thumbnail is clicked, the related image appears. I am passing imgName as parameter. So, it retrieves the related image from MySQL.
My question is, when I click thumbnail, that thumbnail should change so it can be figure out which link has been clicked. At the moment when I click, it retrieves an image but then there is no difference between clicked image and unclicked images.
I've tried a lot with CSS and somewhat javascript but I couldn't figure out. I would appreciate for your help. Thanks a lot.