Road.zip      


HTML Example

 
<!--------------    General settings    --------------->
<applet code="Road.class" width=300 height=100>
<param name=Author value="Author: Vladimir N. Korotkov; www.geocities.com/SiliconValley/Byte/3392">
<param name=sleep value=0>
<param name=yHor value=50>
<param name=velocityBackground value=1>
<param name=velocityText value=2>
<param name=posterGap value=60>

<!------------    Default parameters for all text strings    -------->
<param name=posterSleepD value=0>
<param name=posterWidthD value=225>
<param name=posterHeightD value=84>
<param name=posterBelowD value=7>
<param name=posterFormD value=4>
<param name=fontNameD value="Helvetica">
<param name=fontStyleD value=1>
<param name=fontSizeD value=32>
<param name=fontColorD value=0>
<param name=backColorD value=FFFFFF>
<param name=groundD value=5>
<param name=urlD value="http://geocities.datacellar.net/SiliconValley/Byte/3392/">

<!--------------    Optional settings for text strings    ----------->
<param name=text0 value="!|ROAD">
<param name=fontSize0 value=30>
<param name=posterForm0 value=3>
<param name=posterHeight0 value=100>
<param name=posterWidth0 value=130>
<param name=posterBelow0 value=0>
<param name=ground0 value=-2>

<param name=text1 value="Try|different settings !">
<param name=fontColor1 value=FF0000>
<param name=fontSize1 value=25>

</applet>


Applet parameters

 

General settings

 
width, height width and height of the banner
Author compulsory parameter
sleep time of delay in msec between frames 
yHor height of the landscape image in pixels 
velocityBackground velocity of landscape image in pixels per frame 
velocityText velocity of posters in pixels per frame 
posterGap distance between adjacent posters in pixels 
about images a) an image for the sky should be named sky.jpg and it's size should not be less than xw * (yw*(1-yHor));
b) an image for the landscape should be named earth.jpg and it's size should be 3*xw * (yw*yHor), it is desirable that it is symmetric

Default parameters for all text strings

Default value is used for any string if there is no corresponding optional parameter for this string. 
posterSleepD delay in msec at the moment of central position of a poster 
posterWidthD poster width in % of height of the banner 
posterHeightD poster height in % of height of the banner 
posterBelowD distance between the top edge of the applet and the top of the poster 
posterFormD poster form: oval[0], triangle[3], rectangale[4]  
fontNameD font name  * 
fontStyleD font style: plain[0], bold[1], italic[2], bold+italic[3] 
fontSizeD font size
fontColorD font color**
backColorD poster background color
groundD additional distance below the line bottom to correct the line position
urlD URL

Optional settings for text strings

The following parameters influence only on the current poster. 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 devide text into up to 6 lines with | , see text1 in HTML example; 
textN text 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 ...

Copyright and Freeware

Vladimir Korotkov is the author and owner of this applet. You can use this applet freely to enhance your web pages. However, I placed a very small label in the rigth low angle, and the applet is connected with my home page, when it is clicked with a mouse in this small area.

* The standard Java font names are Dialog, DialogInput, Courier, Helvetica, TimesRoman, and ZapfDingbats.
** Hexadecimal RGB color code is used: FFFFFF is white, FF0000 is red, and so on.
*** 10 different strings are possible in freeware version, so text9 is last.
Back
1