Getting Started
- Place the class files (ryPicWin.class and ryPWFrame.class) in the directory containing the HTML document into which you want to insert the applet (or into a different directory, and add the correct CODEBASE= attribute to the applet tag given below).
- Add the following applet tag to your HTML document in the position you want the PictureWindow link to appear:
<APPLET CODE="ryPicWin.class" width=??? height=???>
<param name=Copyright value="PictureWindow © 1998 CodeBase [www.codebase.co.uk]">
<param name=Image value="screen1.jpg">
<param name=BgColor value="FFFFFF">
<param name=WindowBgColor value="FFFFFF">
<param name=Clickable value="text|View Screenshot">
<param name=Testmode value="yes">
<!--INCLUDE THESE PARAMETERS IF 'CLICKABLE' IS SET TO 'TEXT'-->
<param name=Font value="Helvetica,plain,12">
<param name=TextColor value="000000">
<param name=TextFocusColor value="0000CC">
<param name=TextPressedColor value="CC0000">
</APPLET>
- The Copyright parameter in the second line must be included for the applet to run. It is case sensitive, and the number of spaces between words must be identical (entirely single-spaced). If you try to run the applet and you see the message "Copyright parameter missing or incorrect", it denotes a problem with this parameter.
- Edit the name (and location if necessary) of the Image you want to display.
- Decide whether you want the clickable link to be text, a small image or a button. Set the first element of the Clickable parameter to text, image or button as appropriate.
- If your link is to be a button or text, set the second element of the Clickable parameter to the text to be displayed. If the link is to be an image, set this element to the name (and location if necessary) of the small image to use as the link.
- If the link is text, use the Font and three text-color parameters to set your desired color-scheme for the text. (These parameters have no effect if the link is a button or image.)
- Replace the two sets of question-marks with the correct width and height for the applet. If the link is text or an image, run the applet in your browser with Testmode set to 'yes', move the mouse over the link and read the dimensions given in the browser statusbar, then enter these into your HTML code and set Testmode to 'no'.
- You'll find deeper explanations of each parameter and setting in The Parameters Explained.
|