Hi,
<IMG src="cam_20080509085002.jpg" name="camimage" width="704" height="576" border="1" id="camimage" onload="LoadImg()" onerror="ErrorImg()" />
<SCRIPT language="JavaScript" type="text/javascript">
<!--
var t = 10 // interval in seconds
imgsrc = "";
function ErrorImg() {
setTimeout("LoadImg()", t*2000);
}
function LoadImg() {
if (imgsrc == "") imgsrc = document.write.camimage.src;
document.images.camimage.onload = "";
tmp = new Date();
tmp = "?"+tmp.getTime();
document.write.camimage.src = imgsrc+tmp;
setTimeout("LoadImg()", t*2000);
}
//-->
</SCRIPT>
Nein, aber man kann <image scr="Dateinamen" ...> dynamisch per PHP ausgeben lassen.
http://www.php.net/manual/en/ref.dir.php
MfG ChrisB
danke sid65