set image src by javascript code example
Example: javascript change image src
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";
//change image src
document.getElementById('myImageID').src="images/my_other_image.png";