calling javascript experts!
-
How do I get the following scripts to work on the same page?
They work together in IE but not in Firefox and Mozilla.
<script language=”JavaScript” type=”text/javascript”>
function imgRefresh () {
if (document.images) {
rfsh = new Date() ; rfsh = “?”+rfsh.getTime()
document.images[“webcam_picture”].src = ‘https://www.aeroport.lu/webcam/webcam1.jpg?’+rfsh;
}
setTimeout(‘imgRefresh()’,60*1000);
}
</script>
<left>
<img src=”webcam1.jpg” width=”130″ name=”webcam_picture” alt=””><br>
</center>
<p align=”left”>
<script language=”JavaScript” type=”text/javascript”>
imgRefresh();
</script>
<script language=”JavaScript” type=”text/javascript”>
function imgRefresh () {
if (document.images) {
rfsh = new Date() ; rfsh = “?”+rfsh.getTime()
document.images[“webcam_picture”].src = ‘https://www.aeroport.lu/webcam/webcam2.jpg?’+rfsh;
}
setTimeout(‘imgRefresh()’,70*1000);
}
</script>
<left>
<img src=”webcam2.jpg” width=”130″ name=”webcam_picture” alt=””><br>
</center>
<p align=”left”>
<script language=”JavaScript” type=”text/javascript”>
imgRefresh();
</script>
So, as you can see I want to call up 2 webcams from the local airport on the same page.
You can see that 1 is running @
https://www.cyber6.org
Thanks in advance.
Neil
- The topic ‘calling javascript experts!’ is closed to new replies.