DHTML
  Home arrow DHTML arrow Cross Fading Navigation with DHTML
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? 
DHTML

Cross Fading Navigation with DHTML
By: Justin Cook
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 10
    2004-03-10

    Table of Contents:
  • Cross Fading Navigation with DHTML
  • Putting our Items in Place
  • Into the Code
  • The Fading Function
  • In Retrospect...

  • 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


    Cross Fading Navigation with DHTML


    (Page 1 of 5 )

    Need to build smooth and attractive fading techniques into your web site using nothing more than script? This article will explain a proven cross-browser method, with ready-to-use code. If you think you don’t need this, you will conclude otherwise after reading the article!

    If you’ve perused the recently re-launched Macromedia website, you’ve witnessed their smooth and sexy navigation component built in Flash. If you haven’t seen it yet, basically I’m talking about an extruded bar containing top level navigational items. As you move your mouse over each item, an array of sub-choices fades discreetly into view. If you change your mind, and in turn the co-ordinates of the mouse pointer, the sub-choices fade away.

    This is not a difficult thing to accomplish in Flash. However, there are a few advantages to using dynamic HTML instead. We drastically reduce file sizes (only HTML and JavaScript), and it’s extremely easy to maintain. You can also customize and re-use this script for many purposes, which I’ll cover in the conclusion.

    Our Project

    Basically, we want to accomplish the same wonderful effects that Flash has, but with DHTML only. To do this, we’re going to work with the opacity of these items. Both IE and Mozilla allow us to do this, albeit with separate methods.

    Let’s work with the typical navigational structure of a service provider’s website. (Note: you could definitely use this on your personal web page, where you’re showing off photos of your family and pet tuatara)

    [Company Name]

    • Home
    • About the Company
    • Locations
    • Contact

    Products/Services

    • Products
    • Business Services
    • Residential services

    Success Stories

    • Recent
    • Archived

    Anyhow, the choices are obviously up to you, but let’s get to work with these.

    More DHTML Articles
    More By Justin Cook


     

    DHTML ARTICLES

    - Text-Justify, Volume, and Other Style Sheet ...
    - Ruby-Position, Size, and Other Style Sheet P...
    - Padding, Pages, and More Style Sheet Propert...
    - Marks, Orphans, and More Style Sheet Propert...
    - Layouts, Margins, and Other Style Sheet Prop...
    - Floats, Fonts, and Other Style Sheet Propert...
    - Color, Filters, and Other Style Sheet Proper...
    - Borders and More with Style Sheets
    - Learning Style Sheet Properties
    - Style Sheet Property Reference
    - Completing a Noisy Image Application
    - An Object-Based Approach to Building Noisy I...
    - A Basic Method for Building Noisy Images
    - Adding More Features to Sliders with the Scr...
    - Using Sliders with the Scriptaculous Framewo...







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