Unfortunately, the answer is going to be as vague as the question.
It seems clear that you want to know how to modify the src attribute of an image.
Given this image in your HTML:
<img id="myImage" src="someOldValue" />
You could use this javascript code to get the image by its ID, and change the src attribute.
<script type="text/javascript">
document.getElementById('myImage').src="someNewValue";
</script>
Just place the script at the bottom of your HTML body tag, and it should work.
Please note, that this is a pure javascript solution. If you're going to use jQuery, it may be worth taking a jQuery approach depending upon your actual scenario.