HTML
  Home arrow HTML arrow Page 3 - HTML for a Common Browser Menu
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

HTML for a Common Browser Menu
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-03-13

    Table of Contents:
  • HTML for a Common Browser Menu
  • More on the Elements and Attributes
  • The Table Cell Contents in the DIV
  • The Style Sheet

  • 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


    HTML for a Common Browser Menu - The Table Cell Contents in the DIV


    (Page 3 of 4 )

    A sub menu is gotten from a vertical set of table cell contents in the table in the DIV. Such a vertical set has to exist in a table column. In our code, the content of the table cell is not just the link; it is a SPAN element. Each link is in a SPAN element. Some SPAN elements have the ‘>’ sign. This symbol is outside the link (outside <a></a>), but inside the SPAN element preceded by at least one space.

    Each SPAN element has an ID. The value of the display property of each SPAN element is initially set to "none." If the corresponding link is to be seen, script uses the ID of the SPAN element to set the display property to "block." If the ‘>’ sign is there, it would be seen as well. A table cell element having a SPAN element with the ‘>’ sign will produce a sub menu on its side, if the mouse pointer is over it.

    The question you may ask is this: “If the value of the display property of the SPAN element is set to ‘none,’ does the table cell not collapse?” The answer is that each table cell has been given a definite width and height, so if the cell is empty, it does not collapse.

    A typical SPAN element in a cell is:


    <span id="S13" style="display:none"><a href="sub13.htm">Sub link 13</a></span>


    The ID of each SPAN element begins with S followed by the row number and column number of the cell.

    The table cells in the DIV element have IDs but I have not indicated them above. I did not want the above code segment to be too long. When you want to see the content of a table cell, the script uses the ID to give a background color to the table cell. At that point the table cell is no longer transparent, and the elements behind that particular cell are not seen. When the mouse pointer hovers over a table cell whose content is displayed, the script uses the ID to modify the background color of the table cell. The ID of each of these table cells begins with TD followed by the row number, and then the column number.

    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Google Font API: Requesting a Bold Font Styl...
    - Google Font API: Using the Bi Shorthand
    - Working with the Google Font API`s bolditali...
    - Displaying Bold Text with the Google Font AP...
    - Using the Google Font API`s Bold Argument
    - The Google Font API`s i Shorthand
    - Using the Google Font API`s Italic Option wi...
    - Using the Google Font API`s Italic Option
    - The Google Font API: an Introduction
    - Using HTML 5`s Mark, Summary and Details Ele...
    - Embedding External Content with HTML 5`s Art...
    - Building Sidebars with HTML 5`s Aside Element
    - Working with HTML 5`s Footer Element
    - Using the HTML 5 Section Element
    - An Introduction to HTML 5: Doctype, Header a...







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