I'm just want to check for the remote image every 5 secconds, but can't make it work.
<script>
var img = new Image();
var url = "http://192.168.20.99/led/intro2.gif";
img.onload = function(){
// display image or whatever you need
};
img.onerror = function(){
alert("HOT BERRY IS NOT CONNECTED");
// handle the error
}
img.src = url;
5000;
</script>