|
Getting Started
- Place the program files (Roller.jar, Roller.cab and ryRoller.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 Roller to appear:
<APPLET CODE="ryRoller" ARCHIVE="Roller.jar" WIDTH=235 HEIGHT=200>
<param name=Copyright value="Roller (c) 1999 Cool Focus [www.coolfocus.com]">
<param name=CabBase value="Roller.cab">
<param name=BgColor value="000000">
<param name=TextColor value="C0B0A0">
<param name=TextFocusColor value="FFFFE0">
<param name=TextPressColor value="807060">
<param name=ArrowColor value="908070">
<param name=ArrowFocusColor value="C0B0A0">
<param name=ArrowPressColor value="605040">
<param name=ButtonColor value="800000">
<param name=DefaultTarget value="main">
<param name=Testmode value="no">
<param name=ShowBorder value="yes">
<param name=ShowLinkButton value="yes">
<param name=Delay value="4">
<param name=Amount value="1">
<param name=TextAlign value="top">
<param name=UseHandCursor value="yes">
<param name=Font value="Dialog,plain,12">
<param name=Name value="UniqueName">
<param name=Satellites value="no">
<param name=Item1 value="A pile of Blocks|blocks.jpg">
<param name=Item2 value="Cogs and wheels|cogs.jpg">
<param name=Item3 value="Planets, after a fashion|planets.jpg">
<param name=Item4 value="Typesetting the old-fashioned way">
<param name=Item5 value="|candy.jpg">
<param name=URL1 value="blocks.htm">
<param name=URL2 value="cogs.htm">
<param name=URL3 value="planets.htm">
<param name=URL4 value="type.htm">
<param name=URL5 value="candy.htm">
<param name=Target2 value="_top">
<param name=Target5 value="_top">
</APPLET>
- Change the values of the first block of parameters above to set aesthetic values such as colors, font and alignment.
- In the second block of parameters, use the Item parameters to enter the displayed text and image-path for each menu entry. Separate the text and image with a pipe symbol (|). If no image is required (like Item4 above), you can leave out the pipe symbol and remainder of the parameter. If no text is needed (as Item5 above), begin the value with a pipe symbol followed by the path to the image.
- Set the URL to which each entry should link when the Link-button is clicked. For URLs that should open into a frame other than the one specified in the DefaultTarget parameter, include individual Target parameters to specify that frame-name.
- Set Testmode to 'yes', save the document and view the page in your browser. Move the mouse over the applet and the browser's statusbar will display useful ifnromation to help you set the best applet dimensions.
- You'll find detailed explanations of each parameter and its values in The Parameters Explained.
|