HTML
  Home arrow HTML arrow Page 2 - Making a Common Browser Menu React
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

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

    Table of Contents:
  • Making a Common Browser Menu React
  • Third Code Segment of the react() Function
  • Details of the react() Function
  • The Fourth Code Segment: Details

  • 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


    Making a Common Browser Menu React - Third Code Segment of the react() Function


    (Page 2 of 4 )

    The Third Code Segment

    The second segment turns all the background colors of the cells to brown. This segment turns the background color of whatever cell the mouse pointer is on to firebrick. These two segments handle the problem of making the present color firebrick and the previous one brown.

    The Fourth Code Segment

    This segment clears all the cells in the column whose SPAN elements are not supposed to be displayed. In other words, it clears all the cells in the column that are not supposed to have a brown background color. In order to do the clearing, the code does not change the value of the display property of the SPAN element from "block" to "none." It copies the SPAN elements in their initial state (‘none’) from the Copy Table to the corresponding cells that are to be cleared in our table.

    The Fifth Code Segment

    This segment handles the case where a sub menu has to appear from the menu dropped down by the Drop Down Button. You, the designer, have to know which cell has a SPAN element with the ‘>’ character. The attribute of a button that requires a sub menu is:


    onmouseover="react('TD11',['11'],'2','')"


    The first argument is the ID of the cell having the SPAN element. The second argument is an array. It has the number part of the ID of the SPAN element that has the ‘>’ character. The third argument is the column number for the sub menu to be developed. This should be the next column on the right. However, if the drop down column is the last column, then this number should be the number of the previous column. This segment needs these three arguments in order to produce the sub menu by the side of the drop down menu.

    The Sixth Code Segment

    The last code segment produces a sub menu from a drop down menu. This segment produces a sub menu from a previous sub menu (like the one produced above). The attribute of a button that requires such a lower sub menu is:


    onmouseover="react('TD22',['1122'],'3',['11'])"


    The first three arguments have been described above. The last one is an array. It has the number part of the ID of the cell that gave rise to the present sub menu. Note that each of these array elements can have more than one entry. This segment uses the elements of the two arrays to know which SPAN elements to display in the lower sub menu. We shall see the details later.

    The Seventh Code Segment

    The seventh segment is outside the if-statement. This segment clears the cells displaying SPAN elements that are not supposed to be displayed. It uses the Number Table for this. There are many times when this segment goes into effect but does not change anything. We shall see the details later.

    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Hello HTML 5, Goodbye Gears
    - 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







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