• 0

Refresh Page


Question

Hello,

I am looking to see if someone can help or point me in the direction i need to go in order to achive what i would like to do.

Below is the code for my webcam.php file, this is called onto the main page using a php include it gets two images from a static location that never changes and displays them on the page.

Does anyone know how i can make them two image refresh every X seconds without refreshing the entire page?

<!--This is the template for the Web-Cam section of the home page, i guess you could also embed this onto a page if
you wanted to display the webcam on another page elsewhere -->

<!--Make sure that the path is set correctly on the index.php file or the sky will fall down -->

<div class="maps">
<div class="mapleft">
<div class="maptop">
<p class="camhead">Back Yard Cam - View On <a href="http://oswestryweather.co.uk/rear-webcam-view/">Google Maps</a></p>
<span>Refresh Every 60secs</span>
</div>
<p class="mapimg">

<img src="https://www.oswestryweather.co.uk/data/webcam/back/webcam_back.jpg" alt="This is the view over the Back Yard" width="491" height="368"/>

</p>
</div>
<div class="mapright">
<div class="maptop">
<p class="camhead">Front Yard Cam - View On <a href="#" >Google Maps</a></p>
<span>Refresh Every 90secs</span>
</div>
<p class="mapimg">

<img src="https://www.oswestryweather.co.uk/data/webcam/front/cam_1.jpg" alt="This is the view out of the Front" width="491" height="368"/>

</p>
</div>
</div>[/CODE]

Thanks in advance

Richard

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

This topic is now closed to further replies.