Thema: Bilder mit jacascript function in einen Iframe laden

<html><head><title></title>

<!-- Bilder mit JavaScript in einen Iframe laden.
Load images with javascript into an iframe.
Carregar imagens com javascript para um iframe.
-->

<script type="text/javascript">

function newFoto (fotoName) {
newFoto = new Image();
newFoto.src = fotoName;
document.images[0].src  = newFoto.src;
}
</script>

</head><body>

<iframe id="showBox"  src="here_is_iframe.jpg"  frameborder="yes"  height="200" width="200" scrolling="no" marginheight="0" marginwidth="0" ></iframe>

<img src="here_aint_iframe.jpg" alt="" height="200" width="200"><br>
 
<a href="javascript:newFoto('new_image.jpg')">Next Foto </a>
<!--

This functions if at least one picture is already loaded (here_aint_iframe.jpg).
Funktioniert, wenn mindestens ein Bild schon geladen ist (here_aint_iframe.jpg).
Asim funciona se no minimo uma imagem ja foi caarregada (here_aint_iframe.jpg) .

But how can I load the new picture (new_image.jpg) into the iframe "showBox" ?
Aber wie lade ich das neue Bild (new_image.jpg) in den Iframe "showBox" ?
Mas, como carregar a nova imagem (new_image.jpg) para o iframe "showBox" ?
-->

</body></html>



.