Click here to Skip to main content
Click here to Skip to main content

A JavaScript navigation toolbar

, 14 Feb 2004
Rate this:
Please Sign up or sign in to vote.
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.:

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

About the Author

zlei12
Web Developer
China China
No Biography provided

Comments and Discussions

 
GeneralHorizontal Pinmemberlije1317-May-05 23:43 
GeneralOnly IE PinmemberT.Haberkern15-Feb-04 20:12 
GeneralRe: Only IE PinmemberSeth Illgard6-Feb-07 15:53 

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

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

| Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 15 Feb 2004
Article Copyright 2004 by zlei12
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid