Common HTML

Each page that will have a navbar requires a minimal amount of new HTML. The JavaScript is stored in an external file and is referenced in the HEAD.

<HTML>
<HEAD>
...
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="NavBar.js">
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="NavData.js">
...
</HEAD>

The navigation bar is created by a function call in the BODY tag.

...
<BODY>
<SCRIPT LANGUAGE="JAVASCRIPT">
NavBar ( NavData )
</SCRIPT>
...

The NavData does not need to be a specific name nor function. It is an object (or object constructor thereof) that has the properties that are utilizied by the Navigation Bar Renderer.


Comments or questions ? Contact Richard A. DeVenezia