The uniqueness of SiteMapViewer lies in that it is flexible and easily
customizable. SiteMapMaker provides a WYSIWYG interface which
allows effortless customization of the appearance of the applet, such as
the screen color, the frame color, the button color, the type of font used
for display, and icons used to represent document types. Because of its
flexibility, SiteMapViewer can be seamlessly integrated into
a web page.
Include the html sitemap here so that even people without a java enabled browser can view it.
</body>
</html>
The code for controlpanel.html is as follows
--------------------------------------------------------------------------
<html><head><title>Control Panel for Sitemap </title> </head>
<body bgcolor="XXXXXX"> choose the background color that matches
the appearance of the applet
<APPLET CODEBASE=Applet Setup Directory
CODE=SiteMapViewer ARCHIVE=Applet Setup Directory/sitemapviewer.jar WIDTH=200
HEIGHT=400>
<PARAM name="resource" value=Applet Resource
File Name>
<PARAM name="target" value="main">
</APPLET>
---------------------------------------------------------------------------
2. Create a new browser window which contains the applet using Javascript
The tricky part is how to enable SiteMapViewer to update the content in the main window when the user click on a link. This may be accomplished by using a hidden frame
In this technique, a hidden frame is created solely for including the Javascript code to create a control window.
The sample code is as follows.