CButton

Written by Mark Qian (version D1.0)




Description:

CButton, Command Button, is a JAVA applet written 
by Mark Qian. It works as a command button with pictures 
and scrolling and muilt-line caption.  It also provides sound
when mouse over or click.  Its on_click parameter allows you 
open a given URL address when clicking.  In additional, it allows you display a
message in the status bar when mouse cursor move over the applet. Details
about how to install it in your page is available in 
Mark's Page.

Note: This is a demo version which accepts NO parameter.  
To get the latest version that allows you customize following features

Parameters:
          captionMode  - The way caption is displayed: 
                        0 - display a static (still) multi-line caption.  Of course, you
                            can display only a single line caption by provide only one
                            caption text and set parameter, numcaption to 1.
                        1 - display a scrolling (moving) single-line caption.  Caption1, 
                            caption2, ..., captionN will be scrolled in the order of their
                            numbers.

          speed        - The speed of caption motion(1 - 30).  
          soundmode    - The way sound is played.
                        0 - Sound is played when mouse cusor over CButton
                        1 - Sound is played when clicking.
          audiofile    - The audio file that should reside in
                        the directory where the applet resides.
          upImage      - The image displayed when Cbutton is not pressed.
          downImage    - The image displayed when Cbutton is pressed.
          numCaption   - Number of caption text.
          
          caption1     - Caption text 1
          caption2     - Caption text 2
          ...
          captionN     - Caption text N
       
          borderWidth  - The bevelwidth of left and right edges(in pixel)
          borderHeight - The bevelwidth of top and bottom edges(in pixel)
          fontHeight   - The size of caption font(1-100).
          colorR       - Red component of caption color (0 - 255).
          colorG       - Green component of caption color(0 - 255).
          colorB       - Blue component of caption color(0 - 255).
          status_text - status text which will be displayed in the status.
                        Just set it to "" to disable it.
          on_click    - an URL address whose content will be opened by browser
                        when clicking at the applet.  Just set it to "" to disable it.
       

      please go to Mark's home page.  You can get more exciting applets over
      there!!
      

Running Applets





If you don't see any running applet or image below and get a message "class not found"
that means that 
  - You may forget to rename the class files(see readme.txt fro instructions)
  - You may rename class names to wrong names
Contact Mark Qian to get help.


captionMode=1, soundmode=1
                
captionMode=1, soundmode=1
captionMode=0, soundmode=0
upImage = ""
                
captionMode=0, soundmode=1
numCaption = 0



You are welcome to place it in your own page.