JavaScript
  Home arrow JavaScript arrow Controllable Navigation Bars with JavaScri...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Controllable Navigation Bars with JavaScript, Part 1
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2005-03-21

    Table of Contents:
  • Controllable Navigation Bars with JavaScript, Part 1
  • Building core functionality
  • The JavaScript"switchBar()"function
  • Complete code listing and background images

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Controllable Navigation Bars with JavaScript, Part 1


    (Page 1 of 4 )

    Navigation bars that can be alternately displayed and hidden allow visitors to your website to read page contents more easily. Alejandro Gervasio explains how to set these up using HTML and JavaScript.

     

    Introduction

     

    Just a few years ago, Web developers used nested-table techniques to make Web pages look consistent across the two major browsers, with little or no interactivity present in the whole surfing experience. The modern Web is completely different, where designers are constantly adding more complex functionality to websites, trying to incorporate some interesting and useful features that were already present in software applications for many years. Nowadays, we see sophisticated drop-down menus, image galleries, tree-navigation systems and so on playing an important role in a site’s whole interactivity. And the progress is certainly endless.

     

    One nice feature often implemented on many sites is the presence of side navigation bars that are completely controllable in terms of visibility. This approach allows users to alternately hide and show sidebars. Visitors can thus expand the visible area occupied by the main content, and read page information more clearly and efficiently. If we think about it, this functionality has been present for long time in common software programs.

     

    With this concept in mind, it’s time to show some action. In the first part of this series, I’ll present a pretty straightforward way to add a controllable sidebar to any Web page, using simple HTML markup and a little help from JavaScript. The script itself will be portable enough to be included in existing projects with minor modifications. There is code ahead waiting for us. Let’s move forward to find out more.

     

    More JavaScript Articles
    More By Alejandro Gervasio


       ·  The approach explained in the article might be a good add-on for sites looking...
       · Sorry about that; we had to do that to get the article to fit properly.
       · Hi Terri,No problem about that :-). Thank you for the aclaration.
       · of using that technique for almost 3 years on my site now (onlinetools.org), but I...
       · Hello friend,Thank you for the comment. Definiltively, setting a cookie for...
       · Yes, how would we be able to call the onclick function from another function? Or am...
       · According to your comnents, I thik the best way to keep user preferences is using a...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT