Re: webcam refresh webpage
Posted: Fri 01 Jul 2016 11:09 am
First of all REMOVE Replace the code you have at the bottom of your page BEFORE the closing </body> tag with this ...
Untested .. may have my syntax wrong !!![/quote]
Code: Select all
<head><script type="text/javascript"> // at the bottom of your page, you shouldn't have TWO <head> statements.
Code: Select all
<script type="text/javascript">
// <![CDATA[
var refreshrate = 30; // seconds between refresh
var image = "http://www.davisworthing.co.uk/images/picture.jpg"; // image name
function refresh() { document.body.style.background ="url('image + '?' + new Date()') size 100% 100%"; setTimeout('refresh()', refreshrate * 1000); }
if(document.images)window.onload=refresh;
// ]]>
</script>