Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

webcam refresh webpage

Hardware/software/hints and tips/discussion/webcam links etc
User avatar
beteljuice
Posts: 2455
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: webcam refresh webpage

Postby beteljuice » Fri Jul 01, 2016 11:09 am

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]
Image
......................Imagine, what you will KNOW tomorrow !

dazza1223
Posts: 172
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: webcam refresh webpage

Postby dazza1223 » Fri Jul 01, 2016 11:13 am

ok i will try later mate thank for helping me

dazza1223
Posts: 172
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: webcam refresh webpage

Postby dazza1223 » Fri Jul 01, 2016 6:43 pm

hey there just added it but it stil now refreshing


Return to “Webcams”

Who is online

Users browsing this forum: No registered users and 4 guests