set source of image on click code example
Example: how to change image on mouse click in javascript
<img src="imageName1.jpg" onmouseover="imagefun()" id="getImage">
<img src="imageName1.jpg" onmouseover="imagefun()" id="getImage">