Hallo
Folgendes Script,nicht von mir,bleibt nach ein paar Sekunden stehen oder läuft erst garnicht an ????
Gibt es einen Fehler ?????
Danke
Bernd
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv=pragma content=no-cache>
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Expires" content="0">
<TITLE>Eckstein's Indoor Webcam Page JS</TITLE>
<link rel="stylesheet" type="text/css" href="../images/css.css">
<SCRIPT language="JavaScript" type="text/javascript">
<!--
var t = 1 // 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>
</head><body>
<center>
<IMG src="/webcamram/indoor.jpg" width="320" height="240" border="1" name="visiongs" onload="LoadImg()" onerror="ErrorImg()">
<img src="../images/lb.gif" width="80" height="13" hspace="20">
<A HREF="2cam_js.htm">Aktualisiere das Bild der Drehcam</A>
</center></body></html>
Folgendes Script,nicht von mir,bleibt nach ein paar Sekunden stehen oder läuft erst garnicht an ????
Gibt es einen Fehler ?????
Danke
Bernd
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv=pragma content=no-cache>
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Expires" content="0">
<TITLE>Eckstein's Indoor Webcam Page JS</TITLE>
<link rel="stylesheet" type="text/css" href="../images/css.css">
<SCRIPT language="JavaScript" type="text/javascript">
<!--
var t = 1 // 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>
</head><body>
<center>
<IMG src="/webcamram/indoor.jpg" width="320" height="240" border="1" name="visiongs" onload="LoadImg()" onerror="ErrorImg()">
<img src="../images/lb.gif" width="80" height="13" hspace="20">
<A HREF="2cam_js.htm">Aktualisiere das Bild der Drehcam</A>
</center></body></html>
Kommentar