Ciao a tutti
non riesco a fare il refresh di una singola immagine.
potete aiutarmi??
questa è parte della mia pagina
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>webcam cesena</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Custom CSS for the '3 Col Portfolio' Template -->
<link href="css/portfolio-item.css" rel="stylesheet">
<!--
<script>
function autoReload()
{
var timeID = setTimeout("location.href= 'index.html'", 60000)
}
</script>
-->
<script type="text/javascript" language="JavaScript">
newImage = new Image();
function LoadNewImage()
{
var unique = new Date();
document.images.webcam.src = newImage.src;
newImage.src = "https://dl.dropboxusercontent.com/u/45909/webcamwebcam.jpg?time=" + unique.getTime();
}
function InitialImage()
{
var unique = new Date();
newImage.onload = LoadNewImage;
newImage.src = "https://dl.dropboxusercontent.com/u/45909/webcamwebcam.jpg?time=" + unique.getTime();
document.images.webcam.onload="";
}
</script>
</head>
<body>
<!--
onload="autoReload()"
-->
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Webcam Cesena
<small></small>
</h1>
</div>
</div>
<div class="row">
<div class="col-md-8">
<img class="img-responsive" src="https://dl.dropboxusercontent.com/u/45909/webcamwebcam.jpg" name="webcam" onload="InitialImage()">
</div>