|
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 Section:
Applet Archive
There are many 'sleeper' applets that have aged well over the months. This archive page contains links to applets (and applications) that have been recently updated and applets that deserve another look.
New Section:
Applet Hall of Fame
Over the years, some applets are consistent favorites among visitors to the JavaBoutique. Here are the 10 most requested applets.
New Section:
Reviews
All of JavaBoutique's reviews of Java-related books and software, with links to other reviews at internet.com
New Section:
Tutorials
All of JavaBoutique's Java-related tutorials, with links to other tutorials for all levels of programmer at internet.com
New Section:
JavaBeans
This section of the Java Boutique focuses on Javabeans, a specification developed by Sun Microsystems that defines how Java objects interact.
New Section:
Java Articles
All of JavaBoutique's Java-related articles, with links to other timely articles at internet.com
|