Menu:

Information:

JavaScript für unbewegte Bilder, Intervall = 5 sec

Links:

Version:

2016-08-24

Webcam_2

Die Kamera ist momentan im Testbetrieb.
Online-Zeiten nach Absprache ;-)

VisionGS JavaScript

visionGS

einzufügender Code:

<!-- VisionGS Script Code Begin -->
<script type="text/javascript">
<!--
var t = 5 // interval in seconds
imgsrc = "";

function ErrorImg() {
setTimeout("LoadImg()", t*1000);
}

function LoadImg() {
if (imgsrc == "") imgsrc = document.images.visiongs.src;
document.images.visiongs.onload = "";
tmp = new Date();
tmp = "?"+tmp.getTime();
document.images.visiongs.src = imgsrc+tmp;
setTimeout("LoadImg()", t*1000);
}
// -->
</script>
<img src="hgl_webcam.jpg" alt="visionGS" width="320" 
height="240" name="visiongs" onload="LoadImg()" 
onerror="ErrorImg()" /> 
<!-- VisionGS Script Code End -->