HTML
  Home arrow HTML arrow Page 4 - A Vertical Menu for All Browsers
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? 
HTML

A Vertical Menu for All Browsers
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-06-24

    Table of Contents:
  • A Vertical Menu for All Browsers
  • Layout with Vertical Main Menu
  • Third, Fourth and Fifth Drop Down Menus
  • The Second Drop Down Menu

  • 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


    A Vertical Menu for All Browsers - The Second Drop Down Menu


    (Page 4 of 4 )

    This is the outline diagram of the second drop down menu.




    Fig. 17.7

    You have one section (main) table, having other tables inside of it. It has two rows of one cell each. The first cell has the   character. The reason for this first cell is the same as the reason for the “blank” cells given above.

    The second cell in the second row has a table. This table is always displayed when the section table is displayed. The value of the display property of the section table can be changed from "none" to "block" at any time. The value of the display property of this inner table is always "block."

    This table is more or less what we called the Outer Table previously. However, its ID has been given to the section table; it no longer has an ID. This table has one row and three cells. Each of these cells has the menu table that can be displayed or removed. Everything else for the second drop down menu is as we set it up previously in this series.

    The JavaScript Code

    Two lines are deleted in the JavaScript code. These changes are in the dropDownMenu(ID) function. For the Vertical main menu we no longer have the main table for the sub menus with the ID ‘MT’. So the following line with its preceding comment (not shown here) is removed from the JavaScript:

    document.getElementById('MT').style.display = "block";

    If you do not remove this line, your complete code may not work.

    We no longer have the sub menu produced by the fifth column. So the following line and its preceding comment (not shown here) is removed from the JavaScript:

    document.getElementById('ST34').style.display = "none";

    If you do not remove this line, your complete code may not work.

    Image Code

    You can modify the above code, as we did in the previous part, to have the corresponding image code.

    You can download the complete code for the vertical main menu at:

    versatileCommonMenuVertical.ZIP

    You can download the complete image code for the vertical main menu at:

    versatileCommonMenuVerticalImg.ZIP

    Both files are in ZIP format. The second one includes two images.

    We have come to the end of this part of the series. In the next, and last, part I will give you a summary of all what we have learned and then conclude.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







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