macromedia.dreamweaver
[Top] [All Lists]

Re: web cam code clarification

Subject: Re: web cam code clarification
From: Bream Rockmetteller <bream-dot.rockmetteller-at@xxxxxxx>
Date: Thu, 31 Jul 2008 12:10:05 -0700
Newsgroups: macromedia.dreamweaver


On 2008-07-31 10:45:16 -0700, "Ian Edwards" <i.edwards@xxxxxxxxxxxxxxxxxxxxxxxxxx> said:

Hi

Saw this code listed on another site

<img
            height=310 alt="Plymouth Webcam"
            src="C-Cheeta%20WEATHER_files/plymouth.jpg" width=412
            border=2><BR>

I'm assuming that this "web cam image" is simply a jpeg that is refreshed at a specific time interval??

If so any idea where I can source the refresh javascript?

thanks

Ian

It more than likely works in a similar fashion to a weather data collection program that I use. The data collection program generates html pages and various jpegs of graphs and places them in a directory. The pages and images are replaced at a pre-determined interval and contain the most recent information. When updating, the program grabs a frame from a web cam and includes it in the pile of stuff in the directory. The <img> tag is static and simply displays what ever jpeg file is currently in the directory.

Unless the page you're viewing includes an "update now" button, there's probably no way to force it to give you a new image on demand.

If there's no index.html file in the directory, you might be able to access the files and poke around a bit. On my setup, I've included an index.html file that is just a redirect to the actual current conditions page, so you won't be able to peek behind the scenes.
--
Bream Rockmetteler
Donaldson's Dog Joy
509-540-0301


<Prev in Thread] Current Thread [Next in Thread>