»
EnglishFrenchVietnamese

Print - Web-Cam Refresh - JavaScriptBank.com

Full version: jsB@nk » Image » Web-Cam Refresh
URL: https://www.javascriptbank.com/web-cam-refresh.html

Web-Cam Refresh © JavaScriptBank.comSimple script to refresh a webcam image without refreshing the entire page.

Full version: jsB@nk » Image » Web-Cam Refresh
URL: https://www.javascriptbank.com/web-cam-refresh.html



HTML
<script language="javascript">var refreshrate=5;             //SECONDS BETWEEN REFRESHvar image="webcam.gif";       //IMAGE NAMEvar imgheight=200;             //IMAGE HEIGHTvar imgwidth=100;             //IMAGE WIDTHfunction refresh(){document.images["pic"].src=image+"?"+new Date();setTimeout('refresh()', refreshrate*1000);}document.write('<img src="'+image+'" height="'+imgheight+'" width="'+imgwidth+'" name="pic">');if(document.images)window.onload=refresh;</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->