Next: How can I refresh an image without refreshing the whole page?

How can I refresh an image without refreshing the whole page?

 <script>  
 var reimg  
 window.onload=function () {  
  reimg=document.getElementById('re')  
  setInterval(function () {  
   reimg.src=reimg.src.replace(/\?.*/,function () {  
    return '?'+new Date()  
   })  
  },2000)  
 }  
 </script>  
 <img src="http://151.97.160.13/GetImage.cgi?CH=0" id="re">  

where http://151.97.160.13/GetImage.cgi?CH=0 is the image that you ant refresh

and 2000 is the interval time in milleseconds.
Questo sito utilizza cookies anche di terze parti. Scorrendo questa pagina acconsenti all’uso dei cookie. Se vuoi saperne di più leggil'informativa estesa.Ok, ho capito