| riple
Image Button Bar This vertically oriented button bar example uses three different image files for button states. The "base" image is displayed when the mouse is not within the boundaries of a button. The "mouseOver" image is displayed when the mouse is moved within a button's boundaries. In this example, the "base" image is reused as a "mouseOver2" image to enable an animated effect while the mouse is over the button. Finally, a "mouseDown" image is displayed when the mouse is clicked on a button. Try moving your mouse over the buttons and clicking on the buttons (clicking on the buttons will not cause a URL to load in this example). Notice that the text in the browser's status bar changes as the mouse is moved over each button. | |||||||||||||
| The user created button bar images for this
example are shown below: | |||||||||||||
The first image (DemoBar2a.GIF) is used for the "base" image and also for the "mouseOver2" image, the second image (DemoBar2b.GIF) is used for the "mouseOver" image (alternated with the "mouseOver2" image), and the third image is used for the "buttonDown" image. The button borders are generated automatically by the applet based on applet parameters. If the Java class files and the image files are located in the same directory as the HTML, then the complete applet tag would be defined as illustrated below. Click on the PARAM name for detailed information about the parameter.
| |||||||||||||
otes
on the Applet Parameters
| |||||||||||||
| Copyright © 1997 by Modern Minds, Inc. | |||||||||||||