Page 2 of 2

Re: webcam refresh webpage

Posted: Fri Jul 01, 2016 11:09 am
by beteljuice
First of all REMOVE

Code: Select all

<head><script type="text/javascript"> // at the bottom of your page, you shouldn't have TWO <head> statements.
Replace the code you have at the bottom of your page BEFORE the closing </body> tag with this ...

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>
Untested .. may have my syntax wrong !!![/quote]

Re: webcam refresh webpage

Posted: Fri Jul 01, 2016 11:13 am
by dazza1223
ok i will try later mate thank for helping me

Re: webcam refresh webpage

Posted: Fri Jul 01, 2016 6:43 pm
by dazza1223
hey there just added it but it stil now refreshing