How can we rent space at an airport?

Basics for Webcam Web Pages

Download 1.48 Mb.
Date conversion05.11.2016
Size1.48 Mb.
1   ...   21   22   23   24   25   26   27   28   ...   31

Basics for Webcam Web Pages

Webcams are one of the oldest tricks on the Internet. Back when Netscape was young, my friends and I used to wander by the fish cam all the time. It is hyped as being one of the oldest live cameras on the Internet, starting on or before September 13, 1994.

If you want to set up a Web cam of your own, you'll need to get a camera and some software. I use a Logitech QuickCam, but you can use any type of camera you would like.

Most of the cameras you buy on the market right now come with webcam software, but if they don't you'll need to get software that will both capture the picture and FTP it to your Web site. I use w3cam for Linux, but the Internet Conferencing site has many other lists of webcam software.

Setting Up the Page

Many people, when they decide to build a Webcam, focus all their time and energy on getting the camera and the software. But the Web page it's on is nearly as important. If you don't have certain things set correctly, your webcam can become a "webcan't".

First there's the image. Make sure:

  • The image should have a generic filename - no timestamps - I recommend something like webcam.jpg

  • Know what size image your camera snaps, and use that in the HTML. Don't resize your camera images with the HTML - they are usually fairly grainy and hard to view in the best of times.

  • Check your FTP settings and know where the image will be uploaded to.

  • Write your image tag, the way you would any valid XHTML image tag. Include height and width and don't forget the alt text:
    my cam pic

Then there's the Web page itself. Your page should automatically reload and it should not be cached. This will insure that your cam viewers get a new image every time. Here's how you do that:

In the of your HTML document, place the following two lines:

In the refresh meta tag, if you want your page to refresh less often than every 30 seconds, change the content="30" to something other than 30 - 60 (1 minute), 300 (5 minutes), etc. The expires tag is important because it affects the cache of Web browsers, so that the page is not cached but rather pulled from the server on every load.

The Fish Cam is now the oldest live camera site on the web. Reliable sources say that it was online on or shortly before 13 September 1994 Search is on, type in “the amzing cam”
1   ...   21   22   23   24   25   26   27   28   ...   31

The database is protected by copyright © 2017
send message

    Main page