Use HTML DOM to change the value of the image's src attribute.
<img id="image" src="smiley.gif">
<script>
document.getElementById("image")@(4) = "pic_mountain.jpg";
</script>
<img id="image" src="smiley.gif">
<script>
document.getElementById("image").src = "pic_mountain.jpg";
</script>