When I click on an object, I want to change the image to a different one. The code is organized as follows:
HTML :
<div class="games-platform-item pt-item">
<ul class="games-sub-menu clearfix">
<li class="tab1 current">
<img src="../images/abc11.jpg"/ class="topimgG1" ">
<span>Editor's Choice</span>
</li>
<li class="tab2">
<img src="../images/abc2.jpg"/ class="topimgG2" ">
<span>Slots</span>
</li>
<li class="tab3">
<img src="../images/abc3.jpg"/ class="topimgG3" ">
<span>Table Games</span>
</li>
<li class="tab4">
<img src="../images/abc4.jpg"/ class="topimgG4" ">
<span>Jackpot Rewards</span>
</li>
<li class="tab5">
<img src="../images/abc5.jpg"/ class="topimgG5" ">
<span>Mini Games</span>
</li>
<li class="tab6">
<img src="../images/abc6.jpg"/ class="topimgG6" ">
<span>Video Poker</span>
</li>
<li class="tab7">
<img src="../images/abc7.jpg"/ class="topimgG7" ">
<span>All Games</span>
</li>
<li class="tab8 games-pt-search" style="display:none;"><span>Search Results</span></li>
</ul>
What I am trying to achieve is:
I want the image to change to a colored version when clicked, without using excessive JS or jquery. Can this be achieved using CSS, such as with the .current method?
I need some creative ideas for this.
CSS :