Site Navigator2

        by Dr.Mohan Leslie Noone

Langage : Java (applet)

Web : http://opnoone.members.easyspace.com/applets/nav2.zip

    A multiple level, tree based site navigator.
 

Download See it work in My Java Page! Go to www.jars.com

Instructions

Site navigator2 consists of 2 files : nav2.class (the applet itself) and Branch.class (which manages the tree structure). They should therefore be uploaded together for the applet to run.

    The following parameters are used:
 

  1. Label : The string label for the button which launches the applet frame.

  2.  
  3. Title : The title for the applet frame

  4.  
  5. Target: The target window or frame to show the pages.  Standard notations are  "_self" for same window, "_parent" for the parent window, "{FRAME NAME}" for a specified frame in the current window. If no frame with the name exists, results are shown in a new top level window.

  6.  
  7. Main  : The main link (eg., to the index page)

  8.  The following is the method by which links are to be specified
       "{LINK NAME}={LINK}"
        The {LINK} may be an absolute link like http:// www.xyz.com/ or a relative link
         - to use relative links, add '&&' to the end - as in applets/grader.htm&&

     eg., <param name=main value= "Index=index.html&&">
     

  9. addStem.1, addStem.2, etc. : The first order stems, the values should be as "{STEM NAME}"
  10. eg., <param name=addstem.1 value="applets">
     

  11. addStem.1.1, addStem.1.2, etc. : The second order stems, the values should be as "{STEM NAME}"
  12. eg., <param name=addstem.1.1 value="animations"> will be a branch of stem.1

    Any number of stems of any order are allowed
  13. Link.1,Link.2,Link.3 etc.,: The first order links - Specified as "{linkname}={URL}". The URL may be absolute (e.g.,"http://www.w3.org/") or relative to you web site - to use relative URLs add && to the end (e.g., applets/nav2.htm&&)
  14. eg.,<param name=link.1 value= "Liner=applets/liner.htm&&">
     

  15. Link.1.1,Link.1.2,Link.1.3 etc.,: The second order links (in this case, branches of stem.1). Specify as above, second,third or fourth (or any) order of links are allowed, as mentioned above.

    eg.,<param name=link.1.1.2.5 value= "Drops=applets/gdrops.htm&&"> will come fifth under stem.1.1.2


  16.  
Optional parameters
These parameters are used define the fonts used.
The font is to be desrcibed as <face>,<style>,<size> .

The availabel faces (Please note the capitalization):

The availabel styles: The size may be any integer, say from 10 to 24.

eg.,
<param name=labelfont  value=SansSerif,plain,10>
<param name=listfont  value=Serif,italic,14>
 

  • bgcolor
  • text

  • These parameter can be used to change the background and text colors.  Use standard hexadecimal color codes.

    eg.,
    <param name=bgcolor  value=000000>  : black
    <param name=text  value=00FF00>  : green

    Here is a complete example: <applet code=nav2.class height=30 width=150 align=top> <param name=label value="Site Navigator"> <param name=labelfont value=Serif,bolditalic,20> <param name=listfont value=Serif,bolditalic,17> <param name=bgcolor value=0> <param name=text value=FF0000> <param name=title value="navig"> <param name=target value="main_frame"> <param name=main value="Index=index.htm&&"> <param name=addstem.1 value="Applets"> <param name=addstem.1.1 value="animations"> <param name=addstem.1.1.1 value="early"> <param name=link.1.1.1.1 value="Flag=applets/flag.htm&&"> <param name=link.1.1.1.2 value="Wavetext=applets/wavetext.htm&&"> <param name=addstem.1.1.2 value="later"> <param name=link.1.1.2.1 value="Randomwalk=applets/Randomwalk.htm&&"> <param name=link.1.1.2.2 value="Pops=applets/pops.htm&&"> <param name=link.1.1.2.3 value="MnLake=applets/lake.htm&&"> <param name=link.1.1.2.4 value="Fireworks=applets/fireworks.htm&&"> <param name=link.1.1.2.5 value="Polyhedrons=applets/polyhedrons.htm&&"> <param name=addstem.1.2 value="utilities"> <param name=link.1.2.1 value="ColorBox=applets/ColorBox.htm&&"> <param name=link.1.2.2 value="Site Navigator=applets/nav.htm&&"> <param name=addstem.1.3 value="games"> <param name=link.1.3.1 value="MadBalls=applets/Mad%20Balls.htm&&"> <param name=link.1.3.2 value="MadStars=applets/Mad%20Stars.htm&&"> <param name=addstem.1.4 value="others"> <param name=link.1.4.1 value="Textarea=applets/textarea.htm&&"> <param name=link.1.4.2 value="Liner=applets/liner.htm&&"> <param name=link.1.4.3 value="Bouncer=applets/bouncer.htm&&"> <param name=link.1.4.4 value="Fractal=applets/Fractal.htm&&"> <param name=link.1.4.5 value="Chaos=applets/chaos.htm&&"> <param name=link.1.4.6 value="Knoxs=applets/knoxs.html&&"> <param name=addstem.2 value="JavaScripts"> <param name=link.2.1 value="Rhyme Sort=scripts/Rhyme.htm&&"> <param name=link.2.2 value="JS Color Lab=scripts/Color Lab3.htm&&"> <param name=link.2.3 value="Clock-Calender=scripts/Clock-Calendar.htm&&"> <param name=link.2.4 value="Currrency Converter=scripts/converter.htm&&"> <param name=link.2.5 value="PNG Clock=scripts/clock.htm&&"> <param name=link.1 value="Textpad=java/Textpad.html&&"> </applet>

      Dr.Mohan