basicTOC
basicTOC is a simple Table of Contents JavaTM applet. One-level folders,
mouseover image switching and either frames-based or no-frames based
navigation are
supported. Optionally a text only TOC can also be generated.
The applet generates the
TOC based on the data provided in the applet
tag. Usage
- Each content line is represented by a
pair of image strips for mouseover action. The height of all the image strips
must be the same.
- Single-click on the folder to open/close.
- Single-click on any folder item to load the page in the specified frame.
The specification of which frame to load the page for a given content line is
defined in the applet tag TOCDATA.
- Optionally a text-only TOC can also be generated by specifying the
value of the applet param isIMAGESTRIP to "no". An example is shown here . A background image can
also be optionally specified for the text-only TOC as shown here . The applet param TOCDATA
for the text-only TOC is shown here.
- The CURRENTDOC param of the applet can be used to navigate the
pages without frames. Here is an
example.
Download
This applet does not have any limit to
the number of content lines. You are welcome to use basicTOC at your site.
Here is the zip file :
basictoc.zip (35K).
After unzipping point the browser to basictochome.html.
TOCDATA format when isIMAGESTRIP=yes
Each content
line data consists of five fields separated by a semicolon.
- The
first field (1 or 2), "head" when 1 "tail" when 2.
- The second field
is the image for the content line.
- The third field is the alternate
image for the same content line.
- The fourth field is the targetframe
name. This can be either "_top", "_blank", "_parent", "_self" or any
user-defined name. This field must be 0 when the content line is a head with
one or more tails.
- The fifth field is the URL for the target
document. This can be either relative or fully qualified URL. This field must
be 0 when the content line is a head with one or more tails.
One
content line data is separated from the other by the character '|'.
TOCDATA format when isIMAGESTRIP=no
Each
content line data consists of four fields separated by a semicolon.
- The first field (1 or 2), "head" when 1 "tail" when 2.
- The
second field is the content line string.
- The third field is the
targetframe name. This can be either "_top", "_blank", "_parent", "_self" or
any user-defined name. This field must be 0 when the content line is a head
with one or more tails.
- The fourth field is the URL for the target
document. This can be either relative or fully qualified URL. This field must
be 0 when the content line is a head with one or more tails.
One
content line data is separated from the other by the character '|'.