|
|
![]() |
|
FrontPage contains a Hover Button window to allow easy access to a wide range of functions supported by its Hover Button Java Applet. The Hover Buttons above were added using the FrontPage Editor command Insert | Component | Hover Button. The Hover Button window that allows you to customize the buttons seems complex at first. The image below shows the options that have been used for these particular Hover Buttons.
The first field contains the Button text. Hover Buttons work best if the text is short (one or two words). Although you are limited to one of only four fonts (Arial, Courier, Sans Serif, or Times New Roman), there is a Font button if you want to change the font. The maximum font size is 40 points, however, the smaller font sizes work and look more professional. It is also possible to change the Width and Height of Hover Buttons by using the appropriate fields in the main Hover Button window. The second field enables you to set the URL that the hover button will link to. Lastly, you can specify both a Button color and an Effect color. The Button color drop-down lists contain the most common colors. You can specify a custom color for both the Button and the Effect. The important thing to keep in mind is that the colors work well together. The most common combination is to use a dark color for the button color, and a lighter version for the effect color. In the example buttons above, the Glow effect was used. The Maroon buttons glow with a red color when the mouse is moved over them. The images below show the other Effect options that can be applied using the Effect drop-down list in the Hover Button window.
Customized buttons:Although the default effects and buttons look and work effectively on a web page, there might be occasions when you would prefer to use your own images. Original images may be created using a scanner, digital camera or digital files from your desktop, the FrontPage 2000 Clip Art Gallery or from the Web. Using your favorite graphics program, make two identically sized images and save them. You can save them directly to the Images folder of your web file, or you can use File | Import.. In FrontPage 2000, insert a Hover Button as described above. In the Hover Button window, leave the Button text field blank and do not alter the Button color, Effect or Effect color. Add a URL in the Link to field if required. Click on the Custom button at the bottom left of the Hover Button window. When the Custom window appears, type the filename of the custom image into the Button and On hover fields at the bottom of this window (or browse and point to the proper image file). In the main part of the Hover Button window, insure that the Width and Height fields are set to match the dimensions of your custom images. If you forget, the button can be resized in the Normal view of FrontPage 2000. The completed example of a custom button is shown below (slide your cursor over image to see effect):
This is also great to use when you want to portray a "Before" and "After" picture. Uploading the Hover Button Applet:Because Java Applets are separate files to the actual web page, be sure they are uploaded to the web server along with the web page and all associated images. If your pages are stored on a server which supports FrontPage server extensions, the required Applet will be uploaded automatically, and will reside in the _fpclass folder. If you can't see this folder in your FrontPage web, use the FrontPage Explorer menu command Tools | Web Settings. In the FrontPage Web Settings window, click on the Advanced tab and confirm that the Show documents in hidden directories check-box is checked. After refreshing the FrontPage web, the _fpclass folder should then be visible. If your web pages are stored on a server that does not support FrontPage server extensions, you may transfer the _fpclass folder along with your other files. Unfortunately this doesn't work on all servers. Alternatively you can load the .class files into the same directory as the page that uses them, as long as you make sure they are correctly referenced. That's what we've done for this page. If you still have problems, use the FrontPage Editor HTML editing view to check that the Hover Button Applet HTML is correct (i.e., that the Applet codebase points to the folder containing the fphover.class Applet file). For example, the code for the "Custom" Hover Button is shown below. This example uses .class files that reside in the same directory as the HTML page that uses them.
Other Considerations:
For the Advanced User - Adding Sound Effects:Hover Buttons cannot play the popular .wav sound file format common to PCs, so if your file is in this format you will need to follow the procedure below which will resamples the sound file to make it compatible with the Hover Button and then save it in the correct type of .au file format.
To test the sound effect, load the page into the web browser (the Preview pane in FrontPage will not work). If you use Netscape 4, it is possible to use the Netscape menu command Communicator | Java Console to spy on Java Applets. This can be very useful for working out why the Hover Button sound sample might not be working (in the example window below, the sound sample has been sampled at too high a frequency for the applet).
| |||||||||||||||||||||||||||||||||||||||||
| Suits | Ponytails | Propheads | Contact WDJ | Discuss | Web Audio | Search |