Navigation Applet

Click here to view the readme file.

Applet Usage Example

<APPLET CODE="navigation.class" WIDTH=200 HEIGHT=400>
<PARAM NAME="AUTHOR" VALUE="">
<PARAM NAME="DELAY" VALUE="50">
<PARAM NAME="STEP" VALUE="8">
<PARAM NAME="URL" VALUE="settings.txt">
<PARAM NAME="LEVELXOFFSET" VALUE="25">
<PARAM NAME="TEXTCOLOR" VALUE="c0c080">
<PARAM NAME="ACTIVECOLOR" VALUE="00ffff">
<PARAM NAME="BGCOLOR" VALUE="000000">
<!--PARAM NAME="ALIGN" VALUE="RIGHT"-->
<PARAM NAME="IMAGE0"  VALUE="navup.gif">
<PARAM NAME="IMAGE1"  VALUE="navright.gif">
<PARAM NAME="IMAGE2"  VALUE="navdown.gif">
<PARAM NAME="IMAGE3"  VALUE="navleft.gif">
<PARAM NAME="IMAGE4"  VALUE="navbg0.gif">
<PARAM NAME="IMAGE5"  VALUE="navbg1.gif">
<PARAM NAME="IMAGE6"  VALUE="navromb.gif">
<PARAM NAME="IMAGE7"  VALUE="navround.gif">
<PARAM NAME="IMAGE8"  VALUE="navroundred.gif">
<PARAM NAME="IMAGE9"  VALUE="navapplets.gif">
<PARAM NAME="IMAGE10" VALUE="navscripts.gif">
<PARAM NAME="IMAGE11" VALUE="navbetween.gif">
<PARAM NAME="IMAGE12" VALUE="navfaqs.gif">
<PARAM NAME="IMAGE13" VALUE="navbg3.gif">
<PARAM NAME="IMAGE14" VALUE="navbg4.gif">

<PARAM NAME="USESCHEMES" VALUE="true">
<PARAM NAME="SCHEME0"  VALUE="9 |1 |3 |2 |0 |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME1"  VALUE="4 |1 |3 |2 |0 |Dialog,1,14 |ffff80 |00ffff">
<PARAM NAME="SCHEME2"  VALUE="5 |7 |6 |8 |3 |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME3"  VALUE="13|7 |  |8 |  |Dialog,1,10 |808080 |00ff00">
<PARAM NAME="SCHEME4"  VALUE="5 |7 |6 |8 |3 |Dialog,1,12 |80c0c0 |00ffff">
<PARAM NAME="SCHEME5"  VALUE="5 |7 |6 |8 |3 |Dialog,1,12 |c080c0 |00ffff">
<PARAM NAME="SCHEME6"  VALUE="5 |7 |6 |8 |3 |Dialog,1,12 |80c080 |00ffff">
<PARAM NAME="SCHEME7"  VALUE="5 |7 |6 |8 |3 |Dialog,1,12 |c08080 |00ffff">
<PARAM NAME="SCHEME8"  VALUE="10|1 |3 |2 |0 |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME9"  VALUE="4 |1 |3 |2 |0 |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME10" VALUE="5 |7 |  |8 |  |Dialog,1,12 |c08080 |00ffff">
<PARAM NAME="SCHEME11" VALUE="4 |7 |  |8 |  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME12" VALUE="11|1 |3 |2 |0 |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME13" VALUE="4 |7 |  |8 |  |Dialog,1,12 |c08080 |00ffff">
<PARAM NAME="SCHEME14" VALUE="12|1 |3 |2 |0 |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME15" VALUE="4 |7 |  |8 |  |Dialog,1,12 |80c080 |00ffff">
<PARAM NAME="SCHEME16" VALUE="14|7 |  |8 |  |Dialog,1,12 |c0c080 |00ffff">
<PARAM NAME="SCHEME17" VALUE="14|1 |3 |2 |0 |Dialog,1,12 |c0c080 |00ffff">

</APPLET>
Parameter Description
AUTHOR Your name
TEXTCOLOR
ACTIVECOLOR
TEXTCOLOR
All Colors are in hexadecimal format 'rrggbb', same as HTML colors format but without the # hexadecimal radix symbol. For example, for red color use: FF0000.
DELAY
STEP
Scrolling step in pixels and animation frame delay time.
LEVELXOFFSET Level offset in pixels (recommended to have this value equal to icons width)
ALIGN Optional, parameter if defined as RIGHT tree will be right oriented. If omitted or defined as any other, tree will be left oriented.
URL URL of the menu file structure,
Applet will fetch out menu structure in different ways depending on the file extension.

For TEXT file with .txt extension
Each line of this file is responsible for one menu item in the applet. Number of spaces from the beginning of the line to ">" character corresponds to depth level of menu item. After this follows four fields separated by "|" symbol,
MenuItemText | url | targetframename | appearanceSchemeName
Complete version of settings.txt for curious people

IMAGE0..
IMAGEn
Enumerated images for use with this applet, Enumeration should starts with 0 and have no missed numbers.
USESCHEMES Obligatory parameter, do not change it.
SCHEME0..
SCHEMEn
Any other Schemes names can be used, but take care not to interfere with other parameters' names, I used numbered names, but one can use more self explaining names for various schemes. Each scheme value includes following fields separated by "|" character
  • ItemBackgroundImage #
  • Closed passive state overlay icon #
  • Opened passive state icon #
  • Closed highlight icon #
  • Opened highlight icon #
  • Font Settings including Fontname, FontStyle,FontSize
  • Passive state text color
  • Highlight state text color
  • Here is an example of a menu structure TEXT file:

    Menu Item and level ptr URL(full or relative) targetframe Scheme#
    ---------------------------------------------------------------------
    >Home                   |home.html               |mainFrame |1
    >Java Applications      |java.html               |mainFrame |0
     >File Split            |apps/filesplit.html     |mainFrame |2
      >Download             |apps/filesplit.zip      |mainFrame |3
     >EncryptDecrypt        |apps/encrypt.html       |mainFrame |2
      >Download             |apps/encdec.zip         |mainFrame |3
     >JCalculator           |apps/calculator.html    |mainFrame |2
      >Download             |apps/jcalculator.zip    |mainFrame |3
    >Visual Effects         |effects.html            |mainFrame |0
     >Lake                  |effects/lake.html       |mainFrame |2
      >Download             |effects/lake.zip        |mainFrame |3
     >Tunnel                |effects/tunnel.html     |mainFrame |2
      >Download             |effects/tunnel.zip      |mainFrame |3
     >Rain                  |effects/rain.html       |mainFrame |2
      >Download             |effects/rain.zip        |mainFrame |3
    >Java Games             |javagames.html          |mainFrame |0
     >JSnake                |games/jsnake.html       |mainFrame |2
      >Download             |games/jsnake.zip        |mainFrame |3
     >JDriver               |games/jdriver.html      |mainFrame |2
      >Download             |games/jdriver.zip       |mainFrame |3
    >Books                  |books.html              |mainFrame |0
     >C, C++, VC++, VB      |books/cvcvb.html        |mainFrame |2
     >Java                  |books/javabooks.html    |mainFrame |2
     >HTML, DHTML           |books/html.html         |mainFrame |2
     >Linux & Unix          |books/linux.html        |mainFrame |2
    >Jokes                  |jokes.html              |mainFrame |0
     >Hearing Problems      |jokes/jokes1.html       |mainFrame |2
      >Download             |jokes/jokes1.zip        |mainFrame |3
     >National Flags        |jokes/jokes2.html       |mainFrame |2
      >Download             |jokes/jokes2.zip        |mainFrame |3
     >Delivering Speech     |jokes/jokes3.html       |mainFrame |2
      >Download             |jokes/jokes3.zip        |mainFrame |3
    >Screensaver            |screensaver.html        |mainFrame |1
    >Wallpapers             |wallpapers.html         |mainFrame |1
    >Windows Games          |games.html              |mainFrame |1
    >Windows Utilities      |utilities.html          |mainFrame |1
    >JSearch the web        |search.html             |mainFrame |1
    >Help/Suggestions       |help.html               |mainFrame |1