#!/bin/ksh # This is a CGI script used to assist in picking HTML color codes # # Written by Fred Puhan, April 9, 1997 echo "Content-type: text/html\n\n" cat << EOD HTML Color Picker EOD if [ $# = 0 ]; then cat << EOD Enter a color code combination in the form RRGGBB, where the values for hue and saturation take hexidecimal form. For example, the color code for GREEN is "00FF00" and the code for RED is "FF0000."

Do NOT use quotation marks.

And please note, if your color choice is very dark, the resulting text may not be visible on the page. If you can not read the text, use your browser's "BACK" capability to return you to this page. Finally, note that there is no validity checking taking place, so unpredictable results may occur if non-hex values are entered. EOD else cat << EOD

Color Value: "$1"

This is black text on the color - "$1".
This is white text on the color - "$1".

You can always try again. EOD fi cat << EOD


I'm done. Take me back.