JavaScript
  Home arrow JavaScript arrow Creating a Scrolling Navigation Bar Effect...
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 
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

Creating a Scrolling Navigation Bar Effect with CSS and JavaScript
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-10-05

    Table of Contents:
  • Creating a Scrolling Navigation Bar Effect with CSS and JavaScript
  • Building the dynamic navigation bar
  • Adding a scrolling effect with the Scriptaculous DHTML framework
  • Finishing the dynamic navigation bar

  • 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


    Creating a Scrolling Navigation Bar Effect with CSS and JavaScript


    (Page 1 of 4 )

    Welcome to the third part of a four-part series that shows you how to build collapsible navigation bars with CSS and JavaScript. In this part, you'll learn how to combine the functionality of the Prototype and Scriptaculous libraries to construct a pretty useful scrolling navigational bar.

    Building a static navigation bar with plain HTML is pretty easy. With a decent knowledge on the most common elements that can be included in a web document, any beginner can code a standard navigational mechanism. It's a two-step process: first, create a bunch of links, and then wrap them in a simple list. 

    What if you want to go one step further and provide that navigation bar with a dynamic behavior -- without compromising its overall accessibility? That situation is a bit more complicated. Most of the time you’re going to add a specific behavior to the navigation bar with JavaScript, and this process, when not performed in an unobtrusive way, can turn your neatly-crafted bar into a pretty useless user interface.

    So, is there any way to construct a dynamic web-based navigation system that can be accessible to most users? Of course there is! And if you start reading this article, you’ll be amazed about how simple this procedure can be actually. this article series walks you through the development of an effective navigational mechanism, which can be hidden and shown dynamically on a web page by means of a simple switcher.

    Now that I've outlined what you should expect from this group of articles, let me remind you briefly of the topics that I discussed in the previous tutorial. In that article I demonstrated how to build a pretty basic web-based navigation bar, which could be easily removed from the web page via a simple link.

    As you’ll probably recall, the removal and display of this navigational bar was completely delegated to a small JavaScript application developed through a combination of the Prototype and Scriptaculous libraries. It performed its assigned task in an unobtrusive manner.

    However, if you test the navigation bar in its current state, you’ll see that it can be enabled or disabled alternately with a smooth fade transition effect. This looks pretty attractive. But, it’s possible to replace this transition with another one, and create a navigational bar that can be hidden and displayed via a scrolling effect.

    Thus, in this third chapter of the series I’m going to show you how to construct the above-described navigation bar, also using the combined functionality of Prototype and Scriptaculous.

    Are you ready to learn more on how this will be done? Jump ahead and begin reading!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This third chapter of the series shows you how to construct a dynamic navigation...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek