Anfy Snow - Copyright (C) by Fabio Ciucci 1999 INTRODUCTION. This applet visualises realistic snow flakes as a layer over a selected image, preferably the one with snow already present on the ground. This looks more natural. ********************************************************************* NECESSARY FUILES Apart from the background and overlay images, the following .class files must be uploaded: ansnow.class Lware.class Optionally, you may want to upload ansnow.jar for speedy loading on recent browsers. ********************************************************************** EXAMPLE. Insert the tag in your html document as follows to add this applet to your page (Comments after the ";" symbol are code explanations and acceptable min/max values. They are not part of the applet language): ; Registration code (if you have it) ; Optional URL link when the applet is "clicked" ; Reglink opened in new frame? ; Name of new frame for reglink ; Statusbar message ; Number of far flakes ; Number of middle flakes ; Number of near flakes ; Number of foreground big flakes ; Max speed attained by wind (0..3) ; Wind variation frequency (0..10) ; Snow fall speed (1..50) ; Background image ; Background colour in hex rrggbb format ; Snow over text? ("YES", "NO") ; Optional image over applet ; Over image X offset ; Over image Y offset ; Memory deallocation delay ; Task priority (1..10) ; Min. milliseconds/frame for sync Sorry, your browser doesn't support Java. ; Message for no java browsers. ; End of applet tag **************************************************************** PARAMETER DESCRIPTIONS The following instructions describe the meaning of the available parameters for this applet: [Specify the applet and its size] The size of the applet is determined by width and height tags, which should be same as the background image size. [Credit parameter] Attempting to alter the "credits" parameter will disable the applet. [Reglink parameters] ; Registration code (if you have it) ; Optional URL link when the applet is "clicked" To activate the reg parameters, read the shareware registration notes. In the "regcode" parameter, place the registration code you purchased from us. If the code is correct and the applet is run from the registered domain name, "link" parameters will be enabled and the applet will be linked to an associated URL when it mouse-clicked. ; Reglink opened in new frame? ; Name of new frame for reglink If you set "regnewframe" to "YES", you can specify a specific frame location for the reglink: "_blank" : To load the link in a new blank unnamed browser window. "_self" : To load the link into the same window the applet occupies. "_parent" : To load the link into the immediate FRAMESET parent. "_top" : To load the link into the top body of the window. You can also set a custom frame name, such as "myframe1". ; Statusbar message Here, you set a message which will be displayed when you mouse-over the applet. [Snow layers] ; Number of far flakes ; Number of middle flakes ; Number of near flakes ; Number of foreground big flakes The snow flakes are animated on 4 separate layers: far, middle, near and foreground layers. Then, you can specify the number of flakes on each layer placing a number at flakes1, flakes2, flakes3 and flakes4 parameters, respectively. To make a more realistic snow, we suggest to produce more far flakes than near flakes. NOTE: You can set some layers without snow by placing "0" at respective parameter. However, it's not recommended. [Snow fall speed] ; Snow fall speed (1..50) With "speed" parameter, you can determine the snow falling speed; a good value is 7, but you can specify any value between 1 to 50. [Wind setting] ; Max speed attained by wind (0..3) ; Wind variation frequency (0..10) Optionally, you can add wind, to control the snow fall direction. Two parameters are responsible for wind setting: The "windmax" determine the maximum speed of the wind. Placing the value 0 in this parameter will disable the wind. The "windvariation" parameter determines how fast the wind direction changes. It can be set at 0 to make the wind blocked, or set a value up to 10 to make the wind variable. [Background] ; Background image ; Background colour in hex rrggb format If you want to display a background image, replace "NO" by the image path. The background colour, if background image is absent, is determined by the "bgcolor" parameter, entering the value in hex RRGGBB, like html format, but without the prefix #. [Text over the snow] ; Snow over text? ("YES", "NO") The "overtext" determines if snow can overwrite scrolltext. [Overlay image] ; Optional image over applet ; Over image X offset ; Over image Y offset With the "overimg" parameter you can specify the name of an image that will be shown over the applet. The best options are transparent GIF images. NOTE: Animated GIF images are supported, but will be displayed as animated only on latest browsers (Netscape 4 and Explorer 4 or newer). With "overimgX" and "overimgY" you can position the image over the applet area.