Para el segunto tema:
Código HTML:
<html>
<head>
<title>Untitled</title>
<script>
function ponImg(){
obj=window.document.getElementById("im");
src=window.document.getElementById("texto").value;
if (obj){
obj.style.display="block";
obj.src=src;
}
}
</script>
</head>
<body>
<img id="im" name="im" scr="" style="display: none;">
<form action="#" >
<input type="text" name="texto" /><br />
<input type="button" name="env" value="Mostrar" onclick="ponImg()" />
</form>
</body>
</html>