Installation guide for Animation - server push image animation script (v1.2)
##############################################################################
# Animation Version 1.2 #
# Copyright 1996 Matt Wright [email protected] #
# Created 9/28/95 Last Modified 11/21/95 #
# Scripts Archive at: http://www.worldwidemart.com/scripts/ #
##############################################################################
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.
README - Installation instructions (this file)nph-anim.pl - The Perl script that generates headers and pushes imagesnph- prefix is required! NPH (Non-Parsed Header) scripts output their own HTTP headers directly.
| 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"; |
| Value | Extensions |
|---|---|
gif | .gif |
jpeg | .jpeg, .jpg, .jpe |
x-xbitmap | .xbm |
x-xpixmap | .xpm |
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">
Browse all script documentation