Click here to Skip to main content
15,881,413 members
Articles / Web Development / HTML
Article

A JavaScript navigation toolbar

Rate me:
Please Sign up or sign in to vote.
3.50/5 (8 votes)
14 Feb 2004 50K   798   14   3
This navigation toolbar is implemented in JavaScript by DHTML.

Introduction

This is the first time I make a Toolbar control for Internet-Explore-based web applications. This toolbar acts as a menu for the visitor to navigate to the right page, by a user-friendly way.

Sample image

The features are as follows:

  • Two-level navigation toolbar.
  • Customizable title, image and onclick script.
  • Style sheet is used to define presentation.
  • Supports multiple controls on the same page.

Usage

To use the control, simply include webToolbar.js and webToolbar.css in your HTML file. Then, inside the element (body tag, div tag, etc.), place a script tag and build the control via an array. E.g.:

JavaScript
document.all["placeHolder"].innerHTML = 
   new ToolbarControl(myTools, 400, 100, 80, 300);

A demo of how to do this is inside the included zip file.

Implementation issues

  • a ToolbarControlHandler is used to maintain multiple controls.
  • the tag IDs are coded with ControlID (see makeTabID and makeToolsID)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralHorizontal Pin
lije1317-May-05 23:43
lije1317-May-05 23:43 
GeneralOnly IE Pin
T.Haberkern15-Feb-04 20:12
T.Haberkern15-Feb-04 20:12 
GeneralRe: Only IE Pin
Seth Illgard6-Feb-07 15:53
Seth Illgard6-Feb-07 15:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.