*****************************************************************
*                                                               *
*                             Message(F1.3)                     *
*                            Java Applet                        *
*                         Written by Mark Qian                  *
*                                                               *
*****************************************************************

   


Message is a JAVA appelt written by Mark Qian. It displays user-specified
scrolling messages with sound.  Each piece of text message can be asigned a URL
so that the corresponding URL will be opened when you click at the text message.
It plays a user-specified sound(an au file) when mouse cursor moves over the applet 
area. One of Message's interesting features is that it can "talk" to
other specified applets such as Ad.  That is, when you move mouse cursor within
Ad, Ad will ask Message to display the description about the picture displayed by
Ad. This is an AdWare version.     

PARAMETERS:
==========

         whichBase -   0 the applet uses DocumentBase.  That is, applet will search resouces from
                         the directory where HTML file resides
                       1 applet uses CodeBase.  That is, applet will search resouces from
                         the directory where Java class files resides.


         
         speed       - the speed (in milli-second) of animation. Range of speed can be 0 - n,
		               where n can be a large number such as 5000. Note: 0 - 10 is a
					   special range Where scrolling speed will change dramatically.
		 autotalk    - 0 talk to none
		               1 listen to Ad and display the corresponding description.
					   That is, when <a href="APP_AD.HTM">Ad</a> stops at imagen
					   Message then disaply textn.
         animatemode - 0 always scroll messages.
                       1 scroll to a specified message when "talk" to others such as AD   
                       2 stop scrolling  when mouse cursor within AD 
         switchcolor - 0 the background color will not be changed
                       0 the background color will be changed when switching messages 
         withURL     - Set to 1 if you like to open an URL when clicking at a message.
                       Otherwise, you can set it to 0 and ignore on_click parameters.
         audiofile   - the audio file that should reside in
                       the directory where the applet resides.
					     
         
         background   - URL of the Image which is used to paint caption area's background.
                         This URL has to be a local one such as "images/brnpapr.gif".
                         You can not use a URL that point to an address that is not in
                         the server where the applet resides. If parameter background
                         is valid, bgcolor will be ignored.
         
                         NOTE: Using an image as background will slow down the
                         scrolling speed dramatically.  I may want to adjust the speed
                         to speed up the scrolling text. Or you can ignore parameter
                         background so that the applet use parameter bgcolor in order
                         to increase the srolling speed.
                                         
          bgcolor      - Color of caption background. This feature can be overrided by 
                         parameter background(That is, if background presents, bgcolor
                         will not effect. You need to use the same code format like you use
                         in HTML script such as #ff00ff.  You can also set fgcolor = "vary".
                         Value "vary" will give caption background a random color each time
                         the applet is called.

					             
         nText       - Number of text messages. (You can only use 3 messages or less
		               in the Adware version. Go Shareware for full function.)
         text1...              
         textn       - Text messages (number of them should be the value of nText)
		 borderWidth  - The bevelwidth of left and right edges(in pixel).Set to 0 if you don't
                         like to have a border. 
         borderHeight - The bevelwidth of top and bottom edges(in pixel)

         on_click1 ...
         on_clickn   - The URLs to be opened when corresponding message is clicked
                       (number of them should be the value of nText)


		 The sound played by this applet can be turn On/Off dynamically button another
		 applet wrtten by Mark Qian, CButton. 

INSTALLATION:
============           
          
If you are a webmaster or experienced person, just follow the brief
instructions below. 

IMPORTANT:
=========
   
   *********************************************************************************
   *                                                                               *
   *   If you are NOT familiar with Java applet installation an Unix environment,  *
   *   Please follow the detail instructions in                                    *
   *                                                                               *
   *   http://www.coolshare.com/html/APP_MSG.HTM                                   *
   *                                                                               *
   *   to install it.  Don't try it youself.                                       *
   *                                                                               *
   *********************************************************************************



BRIEF INSTRUCTIONS (for experienced people only):
==================
  
  0). Unzip MESSAGE.ZIP in your local machine (you had done this step).
  
  
  1). Run setup.exe to rename class files. Because PKUNZIP will extract the
      class file, ad.class, to AD.CLA,  if you rather rename them manuly instead
      of using setup.exe, you have to RENAME the class file to ad.class.  
      Similarly, rename ADLOAD.CLA to adload.class, COMMON.CLA to common.class, 
      and MESSAGE.CLA to message.class.
      NOTE: They are case sensitive: all class names should be in lower case.
  
  2). Open TEST_MSG.HTM with your browser locally. If it works locally,
      go to next step.  Otherwise, go to Mark's home page for detail
      instructions.
      
  3). Try TEST_MSG.HTM online(Ignore this step if you think that you 
      REALLY know what to do). 
  
         - place message.class in the place you want in your server.
           (FTP program may change message.class to message.cla. Rename class file
            if needed).
         - place TEST_MSG.HTM and LAUGH.AU to the same directory
         - change access attributes of all the files above to readable(744)
         - Browse TEST_MSG.HTM from your local machine
         
      If it works, go to next step.  Otherwise Go to Mark's page for instructions.
         
   
   4).Use your own stuff
         
         - add following HTML statements into your HTML's body  
 
            <center><FORM><table border = 2><tr><td  ALIGN=center VALIGN=middle><center>
            <applet code="message.class" width=403 height=30 name="message">
            <param name=RegistrationCode value="f1.0-32327">
            <param name=speed value="10">  
            <param name=withURL value="1">       
            <param name=switchcolor value="1">       
            <param name=animatemode value="0"> 
            <param name=audiofile value="LAUGH.AU"> 
            <param name=talkto value=" "> 
            <param name=nText value="5"> 
            <param name=Text1 value="COOLSHARE is Mark Qian's home page where you can find the best screen savers in the world, FREE Java applets, Fun stuff for Webmasters, other fun places such as dating, friends, and more..."> 
            <param name=Text2 value="FREE dating! Click me to find the one in your mind!! "> 
            <param name=Text3 value="IBM up again!! Click me to watch your stock..."> 
            <param name=Text4 value="Click me to send your friends FREE WWW cards.  Design your own style!"> 
            <param name=Text5 value="Come on. Take a break. Here is a piece of music...Click to hear"> 
            <param name=on_click1 value="http://www.coolshare.com/html/HOMEPAGE.HTM"> 
            <param name=on_click2 value="http://www.ozchannel.com/chatsingles/chatsingles.html"> 
            <param name=on_click3 value="http://www.secapl.com/cgi-bin/qs"> 
            <param name=on_click4 value="http://www.warnerbros.com/postoffice/HTML/crd-loon.htm"> 
            <param name=on_click5 value="http://brookmays.com/"> 
            </applet></center></td></tr></table></FORM>
            </center> 
  
      - replace parametes such as "on_click", "text", "audiofile" with your stuff.
  
  
  5). If it works, enjoy it!! (If you like to do its hard-working author a favor, Drop him an 
      LAUGH to let Mark know It runs OK).  Otherwise, go to Mark's page for detail instructions
      of troubleshooting.


    
Go Mark's Home Page(http://www.coolshare.com/") to see more exciting applets!

 