home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 October / PCO1097.ISO / FilesBBS / FREI / ANJAVAPP.EXE / WORMHOLE / wormhole.txt < prev    next >
Encoding:
Text File  |  1997-08-24  |  8.8 KB  |  215 lines

  1.  
  2.           Anfy WormHole 2.0 - Copyright (C) by Fabio Ciucci 1996/97
  3.  
  4.  
  5. This applet can generate and animate in realtime a wormhole effect... or
  6. or a dot-tunnel if you prefer call it in this manner.
  7. Remember that are needed both wormhole.class and Lware.class.
  8. You must upload these 2 .class files and insert the <applet> tag on your
  9. html document to add this applet to your page.
  10. This applet is fully parametrized, so you can change many things to
  11. adapt the effect to your pages and purposes.
  12. Here an example of what you have to write in the html (the things anfter
  13. the ; are comments with min-max values acceptet):
  14.  
  15.  
  16. <applet code="wormhole.class" width=170 height=170>  ; Name, Width, Height
  17. <param name=dotden value="10">         ; Dot Density (1-23)
  18. <param name=backR value="0">           ; RED comp. of backg. color (0-255)
  19. <param name=backG value="0">           ; GREEN comp. of backg. color (0-255)
  20. <param name=backB value="60">          ; BLUE comp. of backg. color (0-255)
  21. <param name=xspeed value="3">          ; X scrolling speed (0-20)
  22. <param name=yspeed value="4">          ; Y scrolling speed (0-20)
  23. <param name=negative value="YES">      ; Image=negative (YES or NO)
  24. <param name=textscroll value="wormscr.txt"> ; File for scrolltext or "NO"
  25. <param name=textoffset value="140">         ; Txtscroll y offset
  26. <param name=textspeed value="1">          ; Txtscroll speed
  27. <param name=textfont value="Arial">       ; Txtscroll font name
  28. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  29. <param name=textsize value="24">          ; Txtscroll font size
  30. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  31. <param name=TextColR value="200">         ; Txtscroll color (red component)
  32. <param name=TextColG value="255">         ; Txtscroll color (green component)
  33. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  34. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  35. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  36. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  37. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  38. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  39. <param name=memdelay value="1000">        ; Memory deallocation delay
  40. <param name=priority value="3">           ; Task priority (1..10)
  41. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  42. </applet>                                 ; End of applet tag
  43.  
  44.  
  45. NOTE: Don't place "; comments" on final HTML!!!
  46.  
  47. Copy and paste in your html document this cleared and correct tag:
  48.  
  49.  
  50. <applet code="wormhole.class" width=170 height=170>
  51. <param name=dotden value="10">
  52. <param name=backR value="0">
  53. <param name=backG value="0">
  54. <param name=backB value="60">
  55. <param name=xspeed value="3">
  56. <param name=yspeed value="4">
  57. <param name=negative value="YES">
  58. <param name=textscroll value="wormscr.txt">
  59. <param name=textoffset value="170">
  60. <param name=textspeed value="1">
  61. <param name=textfont value="Arial">
  62. <param name=textbold value="NO">
  63. <param name=textsize value="24">
  64. <param name=textshadow value="YES">
  65. <param name=TextColR value="200">
  66. <param name=TextColG value="255">
  67. <param name=TextColB value="190">
  68. <param name=TextSColR value="20">
  69. <param name=TextSColG value="20">
  70. <param name=TextSColB value="50">
  71. <param name=TextJumpAmp value="0">
  72. <param name=TextJumpSpd value="0">
  73. <param name=memdelay value="1000">
  74. <param name=priority value="3">
  75. <b>Spiacente, ma il tuo browser non supporta il Java</b>
  76. <b>Sorry, your browser doesn't suppor Java.</b>
  77. </applet>
  78.  
  79.  
  80.                              ---------
  81.  
  82.  
  83. Here detailed instructions about how to change parameters:
  84.  
  85.  
  86. The size of the applet is determined by width and height tags.
  87.  
  88. The "dotden" parameter determine the density of dots: 1=full circles,
  89. the increasing the circle is divided, until value 23.
  90.  
  91. You can change the background colour for best results over your web page,
  92. the RGB values are same as HTML tags, but in decimal values.
  93.  
  94. The "xspeed" and "yspeed" parameters will control speed of X and Y
  95. scrolling.
  96.  
  97. If you want the effect as painted in black under lighter background,
  98. simply set "negative" as "NO" and change backR/G/B to 255,255,255 or
  99. similiar. Otherwise with "YES" the effect is painted in white under 
  100. your background (this time must be darker to have enough contrast).
  101.  
  102.  
  103.                              ---------
  104.  
  105.  
  106. Optional Scrolltext parameters:
  107.  
  108.  
  109. You can optionally activate a scrolltext that will scroll over the applet.
  110. If you don't need the scrolltext, deactivate it placing "NO" at the
  111. "textscroll" parameter.
  112. Otherwise you must supply the name of an ASCII text file, where you must
  113. write the text that you want to be scrolled.
  114. Is supported one only line of text, that can be long as you want.
  115. Remember to upload the text file too, if you activate the scrolltext!
  116.  
  117. If activated, here are the parameters:
  118.  
  119. With "textoffset" you choose the Y offset from the top: placing it to 0 the
  120. scroll will be placed on the top, for example, and placing a value near the
  121. height of the applet it will scroll at the bottom.
  122.  
  123. With "textspeed" parameter you decide the scrolling speed.
  124.  
  125. With "textfont" you choose the font of text. Don't choose a strange or not
  126. standard font, not present in all systems.
  127. The most common fonts are "Arial", "TimesRoman" and "Courier".
  128. If the required font is not present, the most "near" will be used.
  129.  
  130. Setting "textbold" to "YES" you will enlarge a bit the font, otherwise set
  131. it to "NO" for normal contours.
  132.  
  133. With "textsize" you can change the size of text font.
  134. The most common sizes are: 8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72.
  135. Intermediate values will be scaled to nearest available size.
  136.  
  137. Setting "textshadow" to "YES", a shadow will be added to textscroll.
  138. Otherwise, setting it to "NO", any shadow will be "projected".
  139.  
  140. You can choose the color of text with:
  141.  
  142. TextColR = Red component of color (0-255)
  143. TextColG = Green component of color (0-255)
  144. TextColB = Blue component of color (0-255)
  145.  
  146. For example, 0,0,0 is black, 255,255,255 is white, 255,0,0 is red,
  147. 255,255,0 is yellow, 128,128,128 is grey.
  148. You can compose any color you want, do it trying manually or use any paint
  149. program's color selector to find Red Green Blue components of your desired
  150. colors.
  151.  
  152. With TextSColR,TextSColG,TextSColB you can select the color for text shadow.
  153.  
  154. If you like, you can activate the text jumping function.
  155. If "TextJumpAmp" is set to "0", any jumping will be shown.
  156. But increasing the value will result in text jumping: more aplitute, more
  157. high jumps.
  158.  
  159. With "TextJumpSpd" parameter you can select the jumping speed.
  160.  
  161.  
  162.                              ---------
  163.  
  164.  
  165. Compatibility parameters:
  166.  
  167.  
  168. The "memdelay" parameter is useful only to run the applets without problems
  169. on some bugged versions of Netscape 3, that don't deallocate correctly
  170. the memory allocated, resulting in filling all the memory after a minute
  171. the applet is running. This can cause also a system crash in some cases.
  172. Last versions of browsers have fixed this problem, but if you want to run
  173. the applets on old bugged browsers too, set "memdelay" to low values, like
  174. "10" or "16", for example.
  175. But this will slow down a lot the applet speed, so you have to choose
  176. between speed (memdelay set to 1000 or higher) or slow compatibility with
  177. old browsers (memdelay set to 20 or lower).
  178.  
  179. The "priority" parameter is useful mainly when you are running more than
  180. one applet in same page, and one slows down or hangs.
  181. If this applet run too slow or hangs because other one steal all the CPU
  182. power, try increasing the priority.
  183. Otherwise, if this applet runs well and others slows down, decrease the
  184. priority. Consider the min priority is 1, normal priority is 5, and the
  185. max priority is 10. Usually a priority of 3 is ok for single applets.
  186.  
  187.  
  188.                              ---------
  189.  
  190.  
  191. Copyright and distribution notices
  192.  
  193.  
  194. Fabio Ciucci is the author and owner of this applet.
  195. You can use freely this applet to enhance your web pages. But since I am
  196. the author of the applet, I placed a secret window that will appear if the
  197. applet is clicked with mouse: it is external to the web browser, so it will
  198. not hit the design of your beautyful html page. This small window will
  199. simply show my name and ask for a link to my java applets page.. the user
  200. can connect to it or cancel, or hide the window and connect after visiting
  201. all your pages. I hope this credit part is not a problem for you...
  202. In any case, if link is accepted a new browser window will appear and your
  203. page will remain on the original window, so you will not lost the visitor.
  204. Consider you will use an effect programmed by me, without pay, for FREE!
  205.  
  206.  
  207.  
  208. Fabio Ciucci (Randy/Ram Jam)
  209.  
  210. fabioc@anfiteatro.it
  211.  
  212. http://www.anfiteatro.it/java.html
  213.  
  214.  
  215.