home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / ansnow / ansnow.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  7.0 KB  |  184 lines  |  [TEXT/ttxt]

  1.  
  2.            Anfy Snow - Copyright (C) by Fabio Ciucci 1999
  3.  
  4.  
  5. INTRODUCTION.
  6.  
  7. This applet visualises realistic snow flakes as a layer over a selected 
  8. image, preferably the one with snow already present on the ground. This 
  9. looks more natural.
  10.  
  11. *********************************************************************
  12.  
  13. NECESSARY FUILES
  14.  
  15. Apart from the background and overlay images, the following .class files
  16.  must be uploaded: 
  17.  
  18. ansnow.class
  19. Lware.class
  20.  
  21. Optionally, you may want to upload ansnow.jar for speedy loading on 
  22. recent browsers.
  23.  
  24. **********************************************************************
  25.  
  26. EXAMPLE.
  27.  
  28. Insert the <applet> tag in your html document as follows to add this applet
  29. to your page (Comments after the ";" symbol are code explanations and
  30. acceptable min/max values. They are not part of the applet language):
  31.  
  32.  
  33. <applet archive="ansnow.jar" code="ansnow.class" width="320" height="208">
  34. <param name=credits value="Applet by Fabio Ciucci (www.anfyteam.com)">
  35. <param name=regcode value="NO">         ; Registration code (if you have it)
  36. <param name=reglink value="NO">         ; Optional URL link when the applet
  37.                                           is "clicked"
  38. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  39. <param name=regframename value="_blank">; Name of new frame for reglink
  40. <param name=statusmsg value="Snow">     ; Statusbar message
  41. <param name=flakes1 value="500">        ; Number of far flakes
  42. <param name=flakes2 value="300">        ; Number of middle flakes
  43. <param name=flakes3 value="100">        ; Number of near flakes
  44. <param name=flakes4 value="0">          ; Number of foreground big flakes
  45. <param name=windmax value="1">          ; Max speed attained by wind (0..3)
  46. <param name=windvariation value="7">    ; Wind variation frequency (0..10)
  47. <param name=speed value="7">              ; Snow fall speed (1..50)
  48. <param name=backimage value="ansnow.jpg"> ; Background image
  49. <param name=bgcolor value="000133">     ; Background colour in hex rrggbb format
  50. <param name=overtext value="NO">        ; Snow over text? ("YES", "NO")
  51. <param name=overimg value="NO">        ; Optional image over applet
  52. <param name=overimgX value="0">        ; Over image X offset
  53. <param name=overimgY value="0">        ; Over image Y offset
  54. <param name=memdelay value="1000">     ; Memory deallocation delay
  55. <param name=priority value="3">        ; Task priority (1..10)
  56. <param name=MinSYNC value="10">        ; Min. milliseconds/frame for sync
  57. Sorry, your browser doesn't support Java. ; Message for no java browsers.
  58. </applet>                              ; End of applet tag
  59.  
  60.                              
  61. ****************************************************************
  62.  
  63. PARAMETER DESCRIPTIONS
  64.  
  65. The following instructions describe the meaning of the available 
  66. parameters for this applet:
  67.  
  68. [Specify the applet and its size]
  69.  
  70. <applet archive="ansnow.jar" code="ansnow.class" width="320" height="208">
  71.  
  72. The size of the applet is determined by width and height tags, which should
  73. be same as the background image size.
  74.  
  75. [Credit parameter]
  76.  
  77. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  78.  
  79. Attempting to alter the "credits" parameter will disable the applet.
  80.  
  81. [Reglink parameters]
  82.  
  83. <param name="regcode" value="NO">      ; Registration code (if you have it)
  84. <param name="reglink" value="NO">      ; Optional URL link when the applet
  85.                                          is "clicked"
  86.  
  87. To activate the reg parameters, read the shareware registration notes.
  88. In the "regcode" parameter, place the registration code you purchased 
  89. from us. If the code is correct and the applet is run from the registered
  90. domain name, "link" parameters will be enabled and the applet will be
  91. linked to an associated URL when it mouse-clicked.
  92.  
  93. <param name="regnewframe" value="YES">    ; Reglink opened in new frame?
  94. <param name="regframename" value="_blank">; Name of new frame for reglink
  95.  
  96. If you set "regnewframe" to "YES", you can specify a specific frame location
  97. for the reglink:
  98.  
  99. "_blank"  : To load the link in a new blank unnamed browser window.
  100. "_self"   : To load the link into the same window the applet occupies.
  101. "_parent" : To load the link into the immediate FRAMESET parent.
  102. "_top"    : To load the link into the top body of the window.
  103.  
  104. You can also set a custom frame name, such as "myframe1".
  105.  
  106. <param name="statusmsg" value="Snow">     ; Statusbar message
  107.  
  108. Here, you set a message which will be displayed when you mouse-over
  109. the applet.
  110.  
  111. [Snow layers]
  112.  
  113. <param name="flakes1" value="500">        ; Number of far flakes
  114. <param name="flakes2" value="300">        ; Number of middle flakes
  115. <param name="flakes3" value="100">        ; Number of near flakes
  116. <param name="flakes4" value="0">          ; Number of foreground big flakes
  117.  
  118. The snow flakes are animated on 4 separate layers: far, middle, near
  119. and foreground layers. Then, you can specify the number of flakes on
  120. each layer placing a number at flakes1, flakes2, flakes3 and flakes4 
  121. parameters, respectively.
  122.  
  123. To make a more realistic snow, we suggest to produce more far flakes than
  124. near flakes.
  125.  
  126. NOTE:
  127.  
  128. You can set some layers without snow by placing "0" at respective parameter.
  129. However, it's not recommended.
  130.  
  131. [Snow fall speed]
  132.  
  133. <param name="speed" value="7">              ; Snow fall speed (1..50)
  134.  
  135. With "speed" parameter, you can determine the snow falling speed; a good
  136. value is 7, but you can specify any value between 1 to 50.
  137.  
  138. [Wind setting]
  139.  
  140. <param name="windmax" value="1">        ; Max speed attained by wind (0..3)
  141. <param name="windvariation" value="7">  ; Wind variation frequency (0..10)
  142.  
  143. Optionally, you can add wind, to control the snow fall direction. Two parameters
  144. are responsible for wind setting:
  145.  
  146. The "windmax" determine the maximum speed of the wind. Placing the value 0
  147. in this parameter will disable the wind.
  148.  
  149. The "windvariation" parameter determines how fast the wind direction changes.
  150. It can be set at 0 to make the wind blocked, or set a value up to 10 to make 
  151. the wind variable.
  152.  
  153. [Background]
  154.  
  155. <param name="backimage" value="ansnow.jpg"> ; Background image
  156. <param name="bgcolor" value="000133">     ; Background colour in hex rrggb format
  157.  
  158. If you want to display a background image, replace "NO" by the image path.
  159.  
  160. The background colour, if background image is absent, is determined by the
  161. "bgcolor" parameter, entering the value in hex RRGGBB, like html format,
  162. but without the prefix #.
  163.  
  164. [Text over the snow]
  165.  
  166. <param name="overtext" value="NO">        ; Snow over text? ("YES", "NO")
  167.  
  168. The "overtext" determines if snow can overwrite scrolltext.
  169.  
  170. [Overlay image]
  171.  
  172. <param name="overimg" value="NO">           ; Optional image over applet
  173. <param name="overimgX" value="0">           ; Over image X offset
  174. <param name="overimgY" value="0">           ; Over image Y offset
  175.  
  176.  
  177. With the "overimg" parameter you can specify the name of an image that will
  178. be shown over the applet. The best options are transparent GIF images.
  179.  
  180. NOTE: Animated GIF images are supported, but will be displayed as animated
  181. only on latest browsers (Netscape 4 and Explorer 4 or newer).
  182. With "overimgX" and "overimgY" you can position the image over the applet area.
  183.  
  184.