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

A JavaScript navigation toolbar

By , 14 Feb 2004
 

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
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralHorizontalmemberlije1317 May '05 - 23:43 
Is there a way to make it horizontal ?
Thanks
GeneralOnly IEmemberT.Haberkern15 Feb '04 - 20:12 
I don't understand why the most authgers of such script don't code them cross-browser compatible. Its not that difficult. So why only a version that seems only working on IE??
GeneralRe: Only IEmemberSeth Illgard6 Feb '07 - 15:53 
Maybe its because of some codeproject's statment. Most of the tools here are microsoft especific.
 
---Seth---
from Alterware.

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 15 Feb 2004
Article Copyright 2004 by zlei12
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid