
          AnfyFade 2.1 - Copyright (C) by Fabio Ciucci 1996/98


This applet can execute a cross-fade between any GIF or JPG image, the only
requirement is that all images must be same size.
Remember, are needed: AnFade.class , Lware.class and anfy.class.
You must upload these 3 .class files and insert the <applet> tag on your
html document to add this applet to your page.
Here an example of what you have to write in the html (the things anfter
the ; are comments with min-max values acceptet):


<applet code="AnFade.class" width=150 height=132> ; Name, Width, Height
<param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
<param name=regcode value="NO">         ; Register code (if you have it)
<param name=regnewframe value="YES">    ; Reglink opened in new frame?
<param name=regframename value="_blank"> ; Name of new frame for reglink
<param name=image1 value="imfad1.gif">     ; Image 1 to load
<param name=image2 value="imfad2.gif">     ; Image 2 to load
<param name=image3 value="imfad3.gif">     ; Image 3 to load
<param name=image4 value="imfad4.gif">     ; Image 4 to load
<param name=image5 value="imfad5.gif">     ; Image 5 to load
<param name=image6 value="imfad6.gif">     ; Image 6 to load (etc.)
<param name=link1 value="http://www.anfiteatro.it/java.html">   ; link 1
<param name=link2 value="NO">                                   ; link 2
<param name=link3 value="NO">                                   ; link 3
<param name=link4 value="http://www.anfiteatro.it/java.html">   ; link 4
<param name=link5 value="http://www.anfiteatro.it/java.html">   ; link 5
<param name=link6 value="http://www.anfiteatro.it/java.html">   ; link 6
<param name=statusmsg1 value="anfy 1">       ; statusbar msg on image 1
<param name=statusmsg2 value="anfy 2">       ; statusbar msg on image 2
<param name=statusmsg3 value="anfy 3">       ; statusbar msg on image 3
<param name=statusmsg4 value="anfy 4">       ; statusbar msg on image 4
<param name=statusmsg5 value="anfy 5">       ; statusbar msg on image 5
<param name=statusmsg6 value="anfy 6">       ; statusbar msg on image 6
<param name=res value="1">                 ; resolution (1-8)
<param name=speed value="8">               ; speed of fade (1-255)
<param name=pause value="1500">            ; pause in milliseconds.
<param name=memdelay value="1000">        ; Memory deallocation delay
<param name=priority value="3">           ; Task priority (1..10)
<param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
Sorry, your browser doesn't suppor Java.   ; Msg in no java browsers
</applet>


NOTE: Don't place "; comments" on final HTML!!!

Copy and paste in your html document this cleared and correct tag:


<applet code="AnFade.class" width=150 height=132>
<param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
<param name=regcode value="NO">
<param name=regnewframe value="YES">
<param name=regframename value="_blank">
<param name=res value="1">
<param name=image1 value="imfad1.gif">
<param name=image2 value="imfad2.gif">
<param name=image3 value="imfad3.gif">
<param name=image4 value="imfad4.gif">
<param name=image5 value="imfad5.gif">
<param name=image6 value="imfad6.gif">
<param name=link1 value="http://www.anfiteatro.it/java.html">
<param name=link2 value="NO">
<param name=link3 value="NO">
<param name=link4 value="http://www.anfiteatro.it/java.html">
<param name=link5 value="http://www.anfiteatro.it/java.html">
<param name=link6 value="http://www.anfiteatro.it/java.html">
<param name=statusmsg1 value="anfy 1">
<param name=statusmsg2 value="anfy 2">
<param name=statusmsg3 value="anfy 3">
<param name=statusmsg4 value="anfy 4">
<param name=statusmsg5 value="anfy 5">
<param name=statusmsg6 value="anfy 6">
<param name=speed value="8">
<param name=pause value="1500">
<param name=memdelay value="1000">
<param name=priority value="3">
<param name=MinSYNC value="10">
Sorry, your browser doesn't suppor Java.
</applet>


                             ---------


Here detailed instructions about how to change parameters:


The images can be of any size, GIF and/or JPG. But must be same size.

The credits parameter can't be changed otherwise the applet will not work.

To activate the reg parameters read the shareware registration notes.
In the "regcode" parameter you have to place the registration code you
purchase from the author. If it is correct and the applet is run from the
registered domain name, you can use "link" parameters, where you can specify
an URL where bring user when the applet is clicked.
If you set to "YES" regnewframe, you can specify a frame where load 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.

Otherwise the frame name, for example "myframe1".

res determine the size of the applet: with res=1 it equals the size of the
pics, with res=2 is double, etc.
Remember to update the width and height tags: with res=1 must be same as the
size of pics, with res=2 must be double etc.
Otherwise the applet will be not well displayed on browsers.

You can decide HOW MUCH images add in crossfading slideshow.
The min is 2, max is up to you.
If you want to fade between 2 only images, do something like:

<param name=image1 value="imfad1.gif">
<param name=image2 value="imfad2.gif">

If you want to fade between 3 images, do something like:

<param name=image1 value="imfad1.gif">
<param name=image2 value="imfad2.gif">
<param name=image3 value="imfad3.gif">

And so on. Just add image4,image5,.....

With statusmsg1,statusmsg2,statusmsg3... parameters you can change the message
displayed in the statusbar when the different images are displayed.

Paying shareware registration, the link1,link2,... parameters will be enabled
and this applet can become a crossfade banner:

<param name=link1 value="http://www.anfiteatro.it/java.html">
<param name=link2 value="NO">

With this example, if the aplet is clicked when image 1 is displayed, it will
bring to http://www.anfiteatro.it/java.html, but if cliecked when image 2
is displayed, any linking will be done since we wrote "NO".
You can place an URL link related to each image, just use same number.



The speed parameter determine the speed of fade between images. To be exact,
it determine the number of frames, calculated as 256/speed.
A good value is 8, where you have 32 frames, a good resolution for 65000
colors displays, and quite fast. Values under 8 are useful only for who has
a 24bit video mode (16 millions of colors), otherwise is only slower.

The pause, in milliseconds, determine the "hold" time for images between
the fades.


                             ---------


Compatibility parameters:


The "memdelay" parameter is useful only to run the applets without problems
on some bugged versions of Netscape 3, that don't deallocate correctly
the memory allocated, resulting in filling all the memory after a minute
the applet is running. This can cause also a system crash in some cases.
Last versions of browsers have fixed this problem, but if you want to run
the applets on old bugged browsers too, set "memdelay" to low values, like
"10" or "16", for example.
But this will slow down a lot the applet speed, so you have to choose
between speed (memdelay set to 1000 or higher) or slow compatibility with
old browsers (memdelay set to 20 or lower).

The "priority" parameter is useful mainly when you are running more than
one applet in same page, and one slows down or hangs.
If this applet run too slow or hangs because other one steal all the CPU
power, try increasing the priority.
Otherwise, if this applet runs well and others slows down, decrease the
priority. Consider the min priority is 1, normal priority is 5, and the
max priority is 10. Usually a priority of 3 is ok for single applets.

The "MinSYNC" parameter must be set to a value between 8 and 16 to slow
down animation in the case it runs too faster on faster computers or because
the applet size is very small. The optimal value seems to be 10, but you can
disable this feature placing a value of 0 if you see flickerings or excessive
slow down.
If the applets steal 100% of CPU power or slows down the browser and Operating
System, try increasing MinSYNC until all runs ok.
Usually values between 40 and 400 fixes all problems, even if applet slows
down for compatibility.

                             ---------


Copyright and distribution notices


Fabio Ciucci is the author and owner of this applet.
You can use freely this applet to enhance your web pages. But since I am
the author of the applet, I placed a secret linkware window that will appear
if the applet is clicked with mouse, only when the applet is online on a site:
it is external to the web browser, so it will not hit the design of your
beautyful html page.
This small window will simply show my name and ask for a link to my java
applets page.. the user can connect to it or cancel, or hide the window and
connect after visiting all your pages.
I hope this credit part is not a problem for you...
In any case, if link is accepted a new browser window will appear and your
page will remain on the original window, so you will not lost the visitor.
Consider you will use an effect programmed by me, without pay, for FREE!

NOTE: You can include the applets archive on CD-ROMS or shareware collections
and shareware sites without ask me, but only if you leave the archive(s)
unchanged.

                             ---------


Fabio Ciucci

fabioc@anfiteatro.it

http://www.anfiteatro.it/java.html


