home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Graphics
/
Graphics.zip
/
gif_text.zip
/
MKBUTTON.SRE
< prev
next >
Wrap
Text File
|
1998-12-07
|
9KB
|
254 lines
<!--
This is an alternate front end to MkGifTxt; and MkGifTxt invokes GIF_TEXT.
It's set up to facilitate the creation of buttons.
As shipped, this is set up to work as a SRE-http addon.
To use it as a cgi=bin script "addon", just change the
FORM ACTION="/mkgiftxt" method="get"
to
FORM ACTION="/cgi-bin/mkgiftxt" method="get"
Note: If your server uses something other then "/cgi-bin/scriptname to
invoke cgi-bin scripts:,
* enter the appropriate prefix,
* you will need to make a few changes in MkGifTxt.CMD
-->
<HTML>
<HEAD>
<TITLE>GIF_TEXT: A Graphics Text Generator</TITLE>
</HEAD>
<BODY>
<h2 align=center> Generate a Button </h2>
<A NAME="entry">This </A>demonstrates how one can use the GIF_TEXT <em>graphics text message</em>
to create buttons with text in them.
<br>
<!-- CHANGE THIS LINE IF YOU ARE USING SRE-http (instead of CGI-BIN) -->
<FORM ACTION="/mkgiftxt" METHOD="GET">
<center><INPUT TYPE="submit" VALUE="Generate the .GIF"></center><br>
<table><tr>
<td nowrap>Enter the <b>message</b>:</td>
<td><INPUT TYPE="text" NAME="text" value="hello" SIZE=40 MAXLENGTH=100> </td>
<td>
<menu compact>
<li> Use <code>$t</code> to generate the time, and <code>$d</code> to generate the date.
<li> Use <code>$f(new_font_name)</code> to switch fonts.
<li> Use <code>$n</code> for a new line
</menu>
</table>
<table border=0>
<th> Select an <b>alphabyte</b> font</th>
<th> a button style </th>
<th> and a color slide </th>
<tr>
<td valign=top>
<SELECT NAME="FONT" SIZE=5>
<OPTION SELECTED value="Enviro">Enviro (both cases, numbers, etc.)
<OPTION value="Revue">Revue (letters and numbers
<OPTION value="hobo"> Hobo (leters and numbers)
<OPTION value="mandarin"> Mandarin (letters and numbers)
<OPTION value="stich"> Stitches (letters and numbers)
<OPTION value="logger"> Logger (letters only)
<OPTION value="andy01"> Drippy (letters and numbers)
<OPTION value="andy02"> Typewritter keys (letters only)
<OPTION value="andy04"> Austere (letters only)
<OPTION value="andy03"> Shadowed austere (letters only)
<option value="fresnel"> Fresnel (derived from TTF font)
<option value="handwrit"> Handwriting (derived from TTF font)
<option value="twoturt"> Kids (derived from TTF font)
<option value="antelope"> Antelope (derived from TTF font)
<option value="epilog"> Epilog (derived from TTF font)
<option value="buttrfly"> Butterfly (derived from TTF font)
<option value="scrawn"> Scrawn(derived from TTF font)
<option value="ghosty"> Ghosty (letters and numbers)
<option value="fuzgreen"> Fuzzy green (letters and numbers)
<option value="purpwhit"> Purple and white (lettes and numbers)
<option value="greyred">Grey & red (letters and numbers)
</SELECT>
<br>
<em> or ... </em> specify a font name: <input type="text" name="font2" width=15 maxsize="200">
<br>For example: <code>twoturt</code>
</td>
<Td>
<SELECT NAME="back" SIZE=7>
<OPTION SELECTED value="buttons/blustone">Bluestone rectangle
<OPTION SELECTED value="buttons/blueoval">Blue oval
<OPTION SELECTED value="buttons/butntex4"> Purple stone rectangle
<OPTION SELECTED value="buttons/butntex5"> Striped brown rectangle
<OPTION SELECTED value="buttons/butntex6"> Dark Brown wood rectangle
<OPTION SELECTED value="buttons/butntex9"> Streak gold rectangle
<OPTION SELECTED value="buttons/butt01.gif"> Grey circle (h/w=120,120, x/y=28,39)
<OPTION SELECTED value="buttons/butt02"> Black rectangle
<OPTION SELECTED value="buttons/green1"> Green rectangle
<OPTION SELECTED value="buttons/greeov"> Green oval (h/w=120,50, x/y=15,12)
<OPTION SELECTED value="buttons/grey1"> Grey rectangle
<OPTION SELECTED value="buttons/greybut"> Grey stone oval (h/w=120,50, x/y=20,15)
<OPTION SELECTED value="buttons/image4"> Blue papery rectangle
<OPTION SELECTED value="buttons/k_1.gif"> Grey papery rectangle
<OPTION SELECTED value="buttons/K_5.gif"> Dark grey papery rectangle
<OPTION SELECTED value="buttons/k_7.gif">Light green papery rectangle
<OPTION SELECTED value="buttons/next.gif"> Cyan-grey rectangle
<OPTION SELECTED value="buttons/orange1.gif"> Fadeout orange rectangle
<OPTION SELECTED value="buttons/purple1"> Purple rectangle
<OPTION SELECTED value="buttons/redoval">Red oval (h/w=120,50, x/y=20,10)
<OPTION SELECTED value="buttons/sqbut11"> Grey stone square (h/w=100,80, x/y=20,10)
<OPTION SELECTED value="buttons/sqbut13"> Orange stone square
<OPTION SELECTED value="buttons/sqbut22"> Pink stone square
<OPTION SELECTED value="buttons/sqbut26"> Green stone square
<OPTION SELECTED value="buttons/sqbut5"> Brown wood square
<OPTION SELECTED value="buttons/ssqbut30"> Reddish brown wood square
<OPTION SELECTED value="buttons/sqbut7"> White stone square (h/w=100,80, x/y=20,10)
<OPTION SELECTED value="buttons/wood1"> Wood circle (h/w=120,120, x/y=28,39)
</SELECT>
<br>
<menu>
<li>
<em>... or,</em> specify a file: <input type="text" name="back2" width=15 maxsize="200">
<br>For example: <code>buttons/next</code>
<li><em>The <b>h/w</b> (height and width) and <b>x/y</b> (x_frame and y_frame) are recommended values.
</em>
</menu>
</td>
<td valign=top>
<SELECT NAME="slide" SIZE=6>
<OPTION SELECTED value="">No color slide
<OPTION value="slides/b_c_b"> Blue-cyan-blue
<OPTION value="slides/rainbow"> A rainbow
<OPTION value="slides/r_o_r"> Red-orange-red
<OPTION value="slides/fadeout"> Fadeout
<OPTION value="slides/tiedye"> Tie die
<OPTION value="slides/b_w_b"> Black-white-black
<OPTION value="slides/slide1"> Orange-blue
<OPTION value="slides/oranges"> Orange colors
<OPTION value="slides/o_b_o"> Orange blue orange
<OPTION value="slides/bar75"> Yellow/black (2d)
<OPTION value="slides/aback023"> Cloudy (2d)
<OPTION value="slides/backg20"> Purple lightning (2d)
<OPTION value="slides/backg16"> Bumpy grey (2d)
</SELECT><br>
<em>... or,</em> specify a file: <input type="text" name="slide2" width=15 maxsize="200">
<br>For example: <code>slides/fadeout</code>
<Td>
</td>
</table>
<P>
<table>
<Tr>
<td bgcolor="#99aa99">
Message size: </td>
<td>width= <INPUT TYPE="text" NAME="Width" VALUE="120" SIZE=6 MAXLENGTH=6> ,
and height= <INPUT TYPE="text" NAME="height" VALUE="50" SIZE=6 MAXLENGTH=6>
<em>(in pixels) </em>
</table>
<table>
<tr>
<td bgcolor="#99aa99">
Frame size in pixels (modify this to center text within the button):
</td><td>
left/right sides =<INPUT TYPE="text" NAME="X_frame"
VALUE="10" SIZE=4 MAXLENGTH=4>,<br>
and top/bottom =<INPUT TYPE="text" NAME="y_frame" VALUE="10" SIZE=6 MAXLENGTH=6>
</td>
<br>
</table>
<center><em>The above height, width and frame values are recommended, but not
essential. You may find that other values look better.</em></center>
<table>
<tr>
<td bgcolor="#99aa99">
<input type="checkbox" name="transparent" value="-1"> Suppress Transparency
</td><td>
(some button/font combinations require this).
</td></table>
<input type="Hidden" name="back_scale" value=1>
<br>
<center>
<table align=center><tr>
<td> <input type="reset" value="Reset Values">
<td bgcolor="998888"> or
<td>
<INPUT TYPE="submit" VALUE="Generate the .GIF">
</table>
</center>
<p>
<hr>
The following buttons are shipped with the full-pack version of GIF_TEXT. Note that
<b>not</b> all of them are available in the above <em>list of buttons</em>.<br>
<img src="/imgs/allbut1.gif">
<hr>
<h3>Acknowledgements</h3>
This utilty would not have been possible without <A HREF="http://www.bearsoft.com/abs/rexxgd.html">RXGDUTIL.DLL</A> ".GIF"
library; a port of the GD library by <A HREF="mailto:awysocki@bearsoft.com">Andy Wysocki</A>.
<p> ...and, it would have been useless without the various and
sundry <em>alphabyte fonts </em> and <b>backgrounds</b>, which were obtained from:
<dl>
<dt>
Rosie's Alphabytes
<dd>
<a href="http://www.geocities.com/HotSprings/3055/alphabet.html">
http://www.geocities.com/HotSprings/3055/alphabet.html</a>
(<a href="http://www.geocities.com/HotSprings/3055/rozilogo.gif">logo</a>)
<dt>E-Mom's Rainbow Graphic Designs:
<dd> <a href="http://www.geocities.com/Heartland/Hills/6404/rainbow.html">
http://www.geocities.com/Heartland/Hills/6404/rainbow.html</a>
(<a href="http://www.geocities.com/Heartland/Hills/6404/logo-emom.gif">logo</a>)
<dt>Andy's Art Attack:
<dd><a href="http://www.andyart.com">http://www.andyart.com</a>
(<a href="http://www.andyart.com/images/alogo3.gif">logo)</a>
<dt> You might also want to check out ...
<dd>
<menu>
<li> over 100 fonts/alphabytes at
<a href="http://www.algonet.se/~guld1/freefont.htm">
Daniel Guildkrans site </a>
<li> links to many alphabytes at <a href="http://www.ist.net/clipart/uwa/iconsfnt.html">
http://www.ist.net/clipart/uwa/iconsfnt.html </a> and at
<a href="http://www.mangus.com/alphabet.html">http://www.mangus.com/alphabet.html</a>
<li>some 3D alphabets at
<a href="http://www.dewa.com/spell/">
http://www.dewa.com/spell/</a>,
<li> a zillion "digit collections"
<em>(useful if you are interested in using GIF_TEXT as a clock)</eM> at
<a href="http://www.digitmania.holowww.com"> http://www.digitmania.holowww.com</a>
</menu>
</dl>
</BODY>
</HTML>