|
|
|
SNOW
-If you intend to replace the default background pic with one of yours, you need to follow the next steps to get the best visual results:
-Place the picture you want in the same folder than snow.class, and snowPositions.class files.*
-Open the file "snowing.html" with a html editor or note pad.(to do so, right click on it and select "Open With---> notepad").
-Now locate the following lines of code
*******************************************
|CODE="snow.class" WIDTH=264 HEIGHT=184>*****|
|<PARAM NAME="BOUND" VALUE =7>**********|
|<PARAM NAME="SMOKING" VALUE = 1 >*******|
|<PARAM NAME= "IMAGE" VALUE ="snow.jpg">**|
*******************************************
WIDTH :
It equals to the width of the applet, it must be computed as next:
width = (width of your pic) + 2*(boundaries' width). In my example the pic's width = 250, and the bounds are 7 pixels large, thus the applet width should equal 250 + 2*7 = 264.
HEIGHT:
It equals to the height of the applet, it must be computed as next:
height = (height of your pic) + 2*(boundaries' height). In my example the pic's height = 170, and the bounds are 7 pixels large, thus the applet height should equal 170 + 2*7 = 184.
<PARAM NAME="BOUND" VALUE = 7>
"BOUND" :
This refers to the boundaries width/height (I made them equal :D). In my example , the value set to 7 pixels.
<PARAM NAME="SMOKING" VALUE = 1 >
This part controls the smoke: if set to 1, it will show up in the applet. Else it won't.
PS: Always set it off if the background pic ain't set to the default :)
<PARAM NAME="IMAGE" VALUE ="snow.jpg">
To change the default pic to whatever please you, just change "snow.jog" matching your image name and type.
Example:
<PARAM NAME="IMAGE" VALUE ="t0t/\|_n00BO\/\/|\|/\g3.gif"> :P
*To avoid overloading the cpu with heavy pics, always make sure yours are either .jpg, or .gif with a size equal or less to 50 ko.
-If you intend to use this applet as a part of your site, please don't forget to link to www.onelin.com :)