Hello
Gilbert Davis was kind enough to write this script on this Fourm a couple of years ago
1. the script changes a image at a set time and then changes back at set time again..
the current scipt changes at 8.00pm then backat 5.00am next day.
I am tying to change image at 8.30pm and with help of a mate tryed a couple adjustment but to no avail, changes on time but doesnt change back.
this orginal script
</br>
[code=php]</br><script>
function changePerTime() {
var now = new Date();
var aussieTime = (now.getUTCHours() + 11) % 24; // 10 hr from GMT
if ((aussieTime >= 20) || (aussieTime <= 4)) // 9pm to 5am
{document.weather.src = “webcam.jpg”}
else
{document.weather.src = “webcam32.jpg”}
setTimeout(“changePerTime()”, 5*60*1000) // check every 5 minutes
}
</script></br>[code=php]</br>
on
URL=http://www.bayviewbakery.com.au]http://www.bayviewbakery.com.au[/URL]
and our first try on [url]http://www.jervisbaytourism.com/test_weather_cam.html[/url]
br>[code=php]</br>
<script>
function changePerTime() {
var now = new Date();
var aussieTime = (now.getUTCHours() + 11) % 24; // 10 hr from GMT
var aussieMinute = now.getUTCMinutes();
if ((aussieHour >= 20) || (aussieMinute > = 30) || (aussieHour <= 4)) // 8pm to 5am
{document.weather.src = “webcam.jpg”}
else
{document.weather.src = “webcam32.jpg”}
setTimeout(“changePerTime()”, 5*60*1000) // check every 5 minutes
}
</script>
</br>[code=php]</br>
and our 2nd try test on [url]http://www.jervisbaytourism.com/test_weather.html[/url]
</br>[code=php]</br>
<script>
function changePerTime() {
var now = new Date();
var aussieTime = (now.getUTCHours() + 11) % 24; // 10 hr from GMT
var aussieMinute = now.getUTCMinutes();
if ((aussieHour >= 20) || (aussieMinute = 30) || (aussieHour <= 4)) // 8pm to 5am
{document.weather.src = “jervis_bay/forecast/1moon.gif”}
else
{document.weather.src = “jervis_bay/forecast/1.gif”}
setTimeout(“changePerTime()”, 5*60*1000) // check every 5 minutes
}
</script>
</br>[code=php]</br>
Any help would be most appreicated
Regards
Don