Copy link to clipboard
Copied
Hi.
Sorry for my terrible English.
I need to refresh this video every 3 minute, but cant find this in Dreamweaver.
I can refresh the whole page, but I don't want this.
The webcam is streaming 3 minutes and the stop, I have to refresh the page to get it going again.
This is the code for the wemcam:
<table width="98%" border="0">
<tr>
<td align="center">My bird nest webcam </td>
<td> </td>
<td align="center"><p> Live webcam from my aquarium</p></tr>
<tr>
<td width="512" height="277"><table width="362" height="274" border="5" align="center">
<tr align="left">
<td width="344" height="260"><img src="http://192.168.10.10:8080/cam_1.cgi" alt="Bird Cam" name="BirdCam" width="362" height="256" class="webcam" id="BirdCam" onmousedown="PTZMouseDown1(event)" /></td>
</tr>
Tanks for any tips
Ivan VÃ¥genes
Norway
Try something like this in the head of your document:
<script>
function RefreshCam(){
var d = new Date();
var t = d.getTime();
document.getElementById('BirdCam').src = "http://192.168.10.10:8080/cam_1.cgi?"+t;
}
var reloadcam = setInterval("RefreshCam()",180000);
</script>
Copy link to clipboard
Copied
Try something like this in the head of your document:
<script>
function RefreshCam(){
var d = new Date();
var t = d.getTime();
document.getElementById('BirdCam').src = "http://192.168.10.10:8080/cam_1.cgi?"+t;
}
var reloadcam = setInterval("RefreshCam()",180000);
</script>
Copy link to clipboard
Copied
Hi.
Tanks for the code.
It worked perfect.
Ivan
Copy link to clipboard
Copied
You are welcome