Fountain
HTML Example
<!-------------- General settings
--------------------------------->
<applet code="Fountain.class" width=400 height=80>
<param name=Author value="Author: Vladimir N. Korotkov; www.geocities.com/SiliconValley/Byte/3392">
<param name=stepMax value=30>
<param name=sleep value=50>
<param name=longSleep value=0>
<!-------------- Default parameters for all text
strings --------------------------------->
<param name=trajectoryD value=2.5>
<param name=modeD value=0>
<param name=downUpD value=1>
<param name=trackD value=1>
<param name=dissolveModeD value=0>
<param name=dissolveStepD value=10>
<param name=dissolveDelayD value=90>
<param name=colorBgrndD value=0>
<param name=shadowShiftD value=0>
<param name=colorShadowD value=666666>
<param name=fontNameD value=TimesRoman>
<param name=fontStyleD value=1>
<param name=fontSizeD value=52>
<param name=groundD value=8>
<param name=urlD value="http://www.geocities.com/SiliconValley/Byte/3392/">
<!-------------- Optionalal settings for text strings
--------------------------------->
<param name=text0 value="Colored Fountain">
<param name=colorLeft0 value=FF0000>
<param name=colorRight0 value=0000FF>
<param name=text1 value="Try|different settings !">
<param name=colorBgrnd1 value=FFFFFF>
<param name=fontSize1 value=38>
<param name=ground1 value=11>
</applet>
Applet parameters
General settings
|
|
| width, height |
width and height of the banner |
| Author |
compulsory parameter |
| stepMax |
number of frames to show one text string appearance |
| sleep |
time of delay in msec between frames |
| longSleep |
time of delay between text strings |
Default parameters for all text strings
|
Default value is used for any string if there is no corresponding optional
parameter for this string. |
| trajectoryD |
curvature of the pixel trajectory |
| modeD |
one [0] or three fountains [1] |
| downUpD |
draw letters from bottom [1] or from top [0] |
| trackD |
draw tracks of the pixels [1] or no [0] |
| dissolveModeD |
dissolve track gradually [0] or randomly [1] |
| dissolveStepD |
dissolve for ... steps |
| dissolveDelayD |
delay of dissolution on ... % |
| colorBgrndD |
background color * |
| shadowShiftD |
shadow shift in pixels |
| colorShadowD |
shadow color * |
| fontNameD |
font name ** |
| fontStyleD |
font style |
| fontSizeD |
font size |
| groundD |
distance below the letter bottom |
| urlD |
URL |
Optional settings for text strings
|
The following parameters influence only on the current string. Only
parameters text0, text1, ..., textN*** are required. You can change
value of any default parameter for any text string in obvious manner, using
parameterN instead of parameterD.
In addition you can:
a) devide text into 2 lines with | , see text1 in HTML example;
b) define colors of the left and right parts of the string, otherwise
random colors are used. |
| textN |
text of N'th string |
| colorLeftN |
color of the left part of N'th string |
| colorRightN |
color of the right part of N'th string |
Easy Setup
The easiest way to set up the applet on your site is to start with general
and default parameters from HTML example and to change only text0, text1,
..., textN. Then customize fontsize0, fontsize1, ..., fontsizeN and so
on ...
_____________________________________________________________________________
* Hexadecimal RGB color code is used: FFFFFF is white,
FF0000 is red, and so on.
** The standard Java font names are Dialog, DialogInput,
Courier, Helvetica, TimesRoman, and ZapfDingbats.
*** 10 different strings are possible in freeware version, so text9 is last.
Back to the Fountain applet page.
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.