*****************************************************************
*                                                               *
*                             Ad(F3.0)                          *
*                            Java Applet                        *
*                         Written by Mark Qian                  *
*                                                               *
*****************************************************************

   


Ad is a JAVA appelt written by Mark Qian. It displays an user-specified
scrolling window with sound.  Images are switch in a variety of styles
(15 styles)in a user-specified period. Each user-specified image can be 
assigned an URL so that Ad open the URL when the corresponding image is 
clicked. It plays a user-specified sound(an au file) when mouse cursor 
moves over the applet area. A new style popup Ad is added.
This is an AdWare version.
    

PARAMETERS:
==========
         target   - target window where the target URL will be opened.
                    You can set it to a sub frame if you use frames so
                    that the URL is opened in the sub frame.  You can 
                    also set it to one of following

                      _top 
                       Bowser will place URL page into top-level window of the browser

                      _parent 
                       Bowser will place URL page into parent window of the widnow
                       where HTML resides

                      _self 
                       Bowser will place URL page into the widnow where HTML resides

                      _blank 
                       Bowser will place URL page into a new window


         speed       - the speed of animation.
         animatemode - 0 images are always scrolled.
                       1 images are scrolled only when mouse cursor within AD   
                       2 stop scrolling  when mouse cursor within AD 

         popMode     - 0 Ad resides on the window where HTML resides
                       1 Ad resides on a new window above the window where HTML resides
                       2 Ad resides on both the window where HTML resides and
					     a new window above the window where HTML resides

         stable      - If images flash very much, you can set this parameter to 1
                       (default is 0) to have Ad use first 5 stable transition styles.

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


         popupWidth  - Width of popup window    
         popupHeight  - Height of popup window 
		    
         title        - Title of popup window

         withURL     - Set to 1 if you like to open an URL when clicking at a image.
                       Otherwise, you can set it to 0 and ignore on_click parameters.
         peroid      - The period between scrolling
		 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)


         imgname     - the names of image files. 
         dir         - the subdirectory where image files reside 
         nimgs       - number of images used for animation. (You can only use 3 images or less
		               in the Adware version. Go Shareware for full function.)
		                
         audiofile   - the audio file that should reside in
                       the directory where the applet resides.
         on_click1 ...
         on_clickn   - The URLs to be opened when corresponding image is clicked
         image1...
         imagen      - Images to be displayed by AD

		 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_AD.HTM                                    *
   *                                                                               *
   *   to install it.  Don't try it youself.                                       *
   *                                                                               *
   *********************************************************************************



BRIEF INSTRUCTIONS (for experienced people only):
==================
  
  0). Unzip AD.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_AD.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_AD.HTM online(Ignore this step if you think that you 
      REALLY know what to do). 
  
         - place ad.class and loadimage.class in the place you want in your server.
           (FTP program may change ad.class to ad.cla. Rename class files
            if needed).
         - place TEST_AD.HTM, Ad*.GIF, and LAUGH.AU to the same directory
         - change access attributes of all the files above to readable(744)
         - Browse TEST_AD.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  
 
      <applet code="ad.class" width=401 height=88>
      <param name=animatemode value="2">    
      <param name=speed value="4">    
      <param name=peroid value="7"> 
	  <param name=borderWidth value="8"> 
      <param name=borderHeight value="8"> 
      <param name=audiofile value="LAUGH.AU"> 
      <param name=status_text value=""> 
      <param name=nimgs value="5"> 
      <param name=on_click1 value="http://www.aimnet.com/~markqian/HOMEPAGE.HTM"> 
      <param name=on_click2 value="http://www.aimnet.com/~markqian/JAVAZOO.HTM"> 
      <param name=on_click3 value="http://www.aimnet.com/~markqian/SCREENSA.HTM"> 
      <param name=on_click4 value="http://www.aimnet.com/~markqian/mark.html"> 
      <param name=on_click5 value="http://www.aimnet.com/~markqian/APP_AD.HTM"> 
      <param name=image1 value="AD1.GIF"> 
      <param name=image2 value="AD2.GIF"> 
      <param name=image3 value="AD3.GIF"> 
      <param name=image4 value="AD4.GIF"> 
      <param name=image5 value="AD5.GIF"> 
      </applet> 

  
  
      - replace parametes such as "on_click", "image", "audiofile" with your stuff.
  
  
  5). If it works, enjoy it!! (If you like to do its hard-working author a favor, Drop him an 
      Email 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!

 