CrazyText

This page won't be of much value without a Java-enabled browser.

Description

This is a Java® applet based on Daniel Wyszynski's NervousText applet, which was included as a demo in release 1.0 beta1 of the Java Developers Kit.

Differences between CrazyText and NervousText:

Also note:

Version

This is version 2.0 of CrazyText.
It was developed with version 1.0 beta2 of the JDK.
It was tested with version 2.0 beta4 of the Netscape Navigator®.

Parameters

Name Type Description Default
text string text to be displayed CrazyText
delay int milliseconds between updates 100
delta int craziness factor; max pixel offset 5
hgap int horizontal spacing between chars 0
hspace int extra spacing on left and right 0
vspace int extra spacing on top and bottom 0
clear boolean clear background on update false
cycle string color changes: whole|char|none whole
fontName string font name TimesRoman
fontSize int font size 36
fontBold boolean font should be bold true
fontItalic boolean font should be italic false

Examples

To get this... Cut & Paste this...
<applet code="CrazyText.class" width=136 height=37>
<param name=text value="CrazyText">
<param name=delay value="100">
<param name=delta value="5">
<param name=hgap value="5">
<param name=clear value="true">
<param name=cycle value="char">
<param name=fontName value="Helvetica">
<param name=fontSize value="18">
<param name=fontBold value="false">
<param name=fontItalic value="false">
</applet>
<applet code="CrazyText.class" width=136 height=36>
<param name=text value="CrazyText">
<param name=delay value="100">
<param name=delta value="5">
<param name=hgap value="5">
<param name=clear value="true">
<param name=cycle value="whole">
<param name=fontName value="TimesRoman">
<param name=fontSize value="18">
<param name=fontBold value="false">
<param name=fontItalic value="true">
</applet>
<applet code="CrazyText.class" width=136 height=36>
<param name=text value="CrazyText">
<param name=delay value="100">
<param name=delta value="5">
<param name=hgap value="5">
<param name=clear value="true">
<param name=cycle value="none">
<param name=fontName value="TimesRoman">
<param name=fontSize value="18">
<param name=fontBold value="true">
<param name=fontItalic value="false">
</applet>
<applet code="CrazyText.class" width=97 height=32>
<param name=text value="CrazyText">
<param name=delay value="500">
<param name=delta value="2">
<param name=hgap value="0">
<param name=clear value="false">
<param name=cycle value="whole">
<param name=fontName value="Helvetica">
<param name=fontSize value="18">
<param name=fontBold value="true">
<param name=fontItalic value="false">
</applet>
<applet code="CrazyText.class" width=87 height=28>
<param name=text value="CrazyText">
<param name=delay value="500">
<param name=delta value="0">
<param name=hgap value="0">
<param name=clear value="false">
<param name=cycle value="whole">
<param name=fontName value="Helvetica">
<param name=fontSize value="18">
<param name=fontBold value="false">
<param name=fontItalic value="false">
</applet>

Example of using CrazyLabel in a container

Code

You are welcome to copy this code for free and modify it any way you like. If you use it in a web page, credit and/or a link to this page would be appreciated. Pleask ask permission if you want to publish the source for commercial purposes.

Shift-click the links in the table below to download.

Filename Bytes Requires
CrazyText.java 2976 CrazyLabel.java
CrazyLabel.java 4692
CrazyLabelExample.java 684 CrazyLabel.java
CrazyText.class 3425 CrazyLabel.class
CrazyLabel.class 4410
CrazyLabelExample.class 1121 CrazyLabel.class
Crazy20.zip (above + this doc) 11K

Author

Patrick Taylor
104 N Trenton St #2, Arlington, VA 22203
taylor@us.net or taylor@template.com

Questions, comments, suggestions, bug reports and job offers are welcome.