Home Up Products Sales Support Corporate What's up? Search Help
[Network Camera Servers] 

The Campict.class Java applet


About Campict

Campict is an easy-to-use Java applet that continuously displays a set of images with or without caching.

[External view]
If you were using a Java-enabled browser,
you would see a continuously updated image.
Click Reload/Refresh for a new snapshot!

How to use Campict

  1. Place the file campict.class on the same server where your images are kept.
  2. Insert the following piece of code in your HTML file where you want the images to appear:
<APPLET CODEBASE="http://www.yoursite.com/neteye/campict"
   CODE="campict.class" WIDTH=362 HEIGHT=328>
   <PARAM NAME = "Image"
      VALUE = "/img/image1.jpg | /img/image2.jpg | /img/image3.jpg">
   <PARAM NAME = "ImageLabel" 
      VALUE = "First image | Second image | Third image">
   <PARAM NAME = "Interval"
      VALUE = "5">
   <HR>
   If you were using a Java-enabled browser, you would see a 
   continuously updating image instead of this paragraph.
   <HR>
</APPLET>

Notes:

  • CODEBASE specifies the full url where your copy of the Campict applet is located. The applet must be on the same server where your images are kept.
  • The WIDTH and HEIGHT values specifies the size of the applet frame. To fit the images exactly in the frame without resizing, use these values:

  • frame width = image width + 10 pixels
    frame height = image height + 40 pixels

Parameters

The Campict parameters are optional ? if a parameter is omitted, the default value will be used. Some of the parameters can be overridden at runtime ? click the Options button under the image frame above for a demo.

Important: If the "Image" parameter is omitted, the image file fullsize.jpg must be present in the same directory as the Campict applet (the CODEBASE directory ? see above.)
Image  Specifies a list of images to display. Multiple file names must be separated by vertical bars ?|?.
  Syntax:
<PARAM NAME="Image"
   VALUE="imgfile1 [| imgfile2 | ...]">

Default value: "fullsize.jpg"
ImageLabel  Specifies a label for each image. Multiple labels must be separated by vertical bars ?|?.
  Syntax:
<PARAM NAME="ImageLabel"
   VALUE="label1 [| label2 | ...]">

Default value: The file names specified by the Image parameter
Interval  Specifies the interval (in seconds) between each image.
  Syntax:
<PARAM NAME="Interval"
   VALUE="[non-negative integer]">

Default value: 3 (seconds)
NoRefresh  Specifies whether images are to be reloaded or taken from the cache. Cached mode speeds up the display of archive images.
  Syntax:
<PARAM NAME="NoRefresh"
   VALUE="[Boolean (true or false]">

Default value: "false" (non-cached mode)
NoFrame  Shows or hides the frame around the image.
  Syntax:
<PARAM NAME="NoFrame"
   VALUE="[Boolean (true or false]">

Default value: "false" (the frame is shown)
NoOptions  Shows or hides the optionfield (statusfeild, 'About' and 'Options' buttons).
Applet frame width = image width + 10 pixels
Applet frame height = image height + 10 pixels
  Syntax:
<PARAM NAME="NoOptions"
   VALUE="[Boolean (true or false]">

Default value: "false" (the optionfeild is shown)
ImgFitFrame  Specifies whether the images are shown as is, or resized to fit the frame. When resizing is off, images are centered in the frame area. Images larger than the frame are cropped symmetrically to fit the frame.
  Syntax:
<PARAM NAME="ImgFitFrame"
   VALUE="[Boolean (true or false]">

Default value: "false" (no resizing)
OpenDoor
(ver 3.x)
RelayAuto
(ver 4.x)


Specifies the time which the relay remains on. 
  Syntax:
<PARAM NAME="OpenDoor" or "RelayAuto"
   VALUE="[non-negative integer]">

Default value: "0" (disabled)
ImgConfig
(ver 4.x);
Shows or hides the image CGI-parameters feature.
  Syntax:
<PARAM NAME="ImgConfig"
   VALUE="[Boolean (true or false]">

Default value: "false" (disabled)

Download Campict 

If you are running Win95/NT you?ll need an unzip utility such as WinZip to retain the long filenames which are needed for the applet to work. 

The campict.zip comes with pre-compiled binaries, source and HTML examples. 

Last updated: April 24, 1997
[email protected]