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

  1.  
  2.           AnfyFade 2.0 - Copyright (C) by Fabio Ciucci 1996/97
  3.  
  4.  
  5. This applet can execute a cross-fade between any GIF or JPG image, the only
  6. requirement is that all images must be same size.
  7. Remember, are needed: AnFade.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. Here an example of what you have to write in the html (the things anfter
  11. the ; are comments with min-max values acceptet):
  12.  
  13.  
  14. <applet code="AnFade.class" width=150 height=132> ; Name, Width, Height
  15. <param name=image1 value="imfad1.gif">     ; Image 1 to load
  16. <param name=image2 value="imfad2.gif">     ; Image 2 to load
  17. <param name=image3 value="imfad3.gif">     ; Image 3 to load
  18. <param name=image4 value="imfad4.gif">     ; Image 4 to load
  19. <param name=image5 value="imfad5.gif">     ; Image 5 to load
  20. <param name=image6 value="imfad6.gif">     ; Image 6 to load
  21. <param name=res value="1">                 ; resolution (1-8)
  22. <param name=speed value="8">               ; speed of fade (1-255)
  23. <param name=pause value="1500">            ; pause in milliseconds.
  24. <param name=memdelay value="1000">        ; Memory deallocation delay
  25. <param name=priority value="3">           ; Task priority (1..10)
  26. Sorry, your browser doesn't suppor Java.   ; Msg in no java browsers
  27. </applet>
  28.  
  29.  
  30. NOTE: Don't place "; comments" on final HTML!!!
  31.  
  32. Copy and paste in your html document this cleared and correct tag:
  33.  
  34.  
  35. <applet code="AnFade.class" width=150 height=132>
  36. <param name=image1 value="imfad1.gif">
  37. <param name=image2 value="imfad2.gif">
  38. <param name=image3 value="imfad3.gif">
  39. <param name=image4 value="imfad4.gif">
  40. <param name=image5 value="imfad5.gif">
  41. <param name=image6 value="imfad6.gif">
  42. <param name=res value="1">
  43. <param name=speed value="8">
  44. <param name=pause value="1500">
  45. <param name=memdelay value="1000">
  46. <param name=priority value="3">
  47. Sorry, your browser doesn't suppor Java.
  48. </applet>
  49.  
  50.  
  51.                              ---------
  52.  
  53.  
  54. Here detailed instructions about how to change parameters:
  55.  
  56.  
  57. The images can be of any size, GIF and/or JPG. But must be same size.
  58.  
  59. res determine the size of the applet: with res=1 it equals the size of the
  60. pics, with res=2 is double, etc.
  61. Remember to update the width and height tags: with res=1 must be same as the
  62. size of pics, with res=2 must be double etc.
  63. Otherwise the applet will be not well displayed on browsers.
  64.  
  65. If you want to fade between 2 only images, you must do something like:
  66.  
  67. <param name=image1 value="imfad1.gif">
  68. <param name=image2 value="imfad2.gif">
  69. <param name=image3 value="imfad1.gif">
  70. <param name=image4 value="imfad2.gif">
  71. <param name=image5 value="imfad1.gif">
  72. <param name=image6 value="imfad2.gif">
  73.  
  74. If you want to fade between 3 only images, you must do something like:
  75.  
  76. <param name=image1 value="imfad1.gif">
  77. <param name=image2 value="imfad2.gif">
  78. <param name=image3 value="imfad3.gif">
  79. <param name=image4 value="imfad1.gif">
  80. <param name=image5 value="imfad2.gif">
  81. <param name=image6 value="imfad3.gif">
  82.  
  83.  
  84. The speed parameter determine the speed of fade between images. To be exact,
  85. it determine the number of frames, calculated as 256/speed.
  86. A good value is 8, where you have 32 frames, a good resolution for 65000
  87. colors displays, and quite fast. Values under 8 are useful only for who has
  88. a 24bit video mode (16 millions of colors), otherwise is only slower.
  89.  
  90. The pause, in milliseconds, determine the "hold" time for images between
  91. the fades.
  92.  
  93.  
  94.                              ---------
  95.  
  96.  
  97. Compatibility parameters:
  98.  
  99.  
  100. The "memdelay" parameter is useful only to run the applets without problems
  101. on some bugged versions of Netscape 3, that don't deallocate correctly
  102. the memory allocated, resulting in filling all the memory after a minute
  103. the applet is running. This can cause also a system crash in some cases.
  104. Last versions of browsers have fixed this problem, but if you want to run
  105. the applets on old bugged browsers too, set "memdelay" to low values, like
  106. "10" or "16", for example.
  107. But this will slow down a lot the applet speed, so you have to choose
  108. between speed (memdelay set to 1000 or higher) or slow compatibility with
  109. old browsers (memdelay set to 20 or lower).
  110.  
  111. The "priority" parameter is useful mainly when you are running more than
  112. one applet in same page, and one slows down or hangs.
  113. If this applet run too slow or hangs because other one steal all the CPU
  114. power, try increasing the priority.
  115. Otherwise, if this applet runs well and others slows down, decrease the
  116. priority. Consider the min priority is 1, normal priority is 5, and the
  117. max priority is 10. Usually a priority of 3 is ok for single applets.
  118.  
  119.  
  120.                              ---------
  121.  
  122.  
  123. Copyright and distribution notices
  124.  
  125.  
  126. Fabio Ciucci is the author and owner of this applet.
  127. You can use freely this applet to enhance your web pages. But since I am
  128. the author of the applet, I placed a secret window that will appear if the
  129. applet is clicked with mouse: it is external to the web browser, so it will
  130. not hit the design of your beautyful html page. This small window will
  131. simply show my name and ask for a link to my java applets page.. the user
  132. can connect to it or cancel, or hide the window and connect after visiting
  133. all your pages. I hope this credit part is not a problem for you...
  134. In any case, if link is accepted a new browser window will appear and your
  135. page will remain on the original window, so you will not lost the visitor.
  136. Consider you will use an effect programmed by me, without pay, for FREE!
  137.  
  138.  
  139.  
  140. Fabio Ciucci (Randy/Ram Jam)
  141.  
  142. fabioc@anfiteatro.it
  143.  
  144. http://www.anfiteatro.it/java.html
  145.  
  146.  
  147.