<img src=(uncnown) id="img" width="189" height="255" alt="lorem">
<img src="" id="img"
width="189" height="255" alt="lorem">
<input type="text" id="input">
<script type="text/javascript">
var input_taker = document.getElementById('input').value;
var img = document.getElementById('img');
img.src = input_taker;
</script>