Changing An Images Source File
<img id="my_image" src="images/image1.png" width="22" height="8">
<script>
//Chage the image source:
document.getElementById("my_image").src="images/image2.png";
</script>
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.