Animation Readme

Installation guide for Animation - server push image animation script (v1.2)

Perl v1.2 Documentation

Overview

This script allows you to implement animations in-lined into your HTML pages using server push technology. Images are pushed from the server to the client one after another, creating an animation effect.

Package Contents
  1. README - Installation instructions (this file)
  2. nph-anim.pl - The Perl script that generates headers and pushes images

nph-anim.pl Configuration

Variables
Variable Description Example
$times Number of times to cycle through the animation $times = "1";
$basefile Absolute path to images directory $basefile = "/path/to/images/";
@files Array of image filenames in animation order @files = ("frame1.gif","frame2.gif","frame3.gif");
$con_type Image content type $con_type = "gif";
Supported Image Types
Value Extensions
gif.gif
jpeg.jpeg, .jpg, .jpe
x-xbitmap.xbm
x-xpixmap.xpm

How to Call This Script

Place the script in your cgi-bin with chmod 755 permissions, then call it from an IMG tag:

<img src="/cgi-bin/nph-anim.pl" alt="Animation">

Related Documentation

All Readme Files

Browse all script documentation