HTML
  Home arrow HTML arrow A 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 Menu for All Browsers
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2009-05-06

    Table of Contents:
  • A Menu for All Browsers
  • Tutorial arrangement of this series
  • The secret of the elaborated layout approach
  • Overall layout
  • The Main 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 Menu for All Browsers


    (Page 1 of 5 )

    The aim of this series is to come up with code that can be used by all browsers without having code segments addressing the peculiarities of different browsers. I accomplished this in part in a previous series, but I needed to use extra code segments, and there were still some problems. This nine-part series addresses those problems while accommodating more browsers.

    Introduction

    The code in my previous series has the following small disadvantages: the widths of the sub menu columns are of the same size; the code is not simple; and a minority of users cannot use it. In this series, the widths of the columns can be of different sizes; the code is simple; and I do not know of any browser that cannot use it.

    However, there is a very small disadvantage: the code in this series has just one statement with expressions special to particular browsers. The particular browsers in this series are Opera and Safari. Each of these browsers need an expression in the statement. Internet Explorer, Mozilla Firefox and Netscape can be taken as normal browsers in this series, and do not need to be considered in the statement.

    The previous series featured the title "Common Browser Menu." This one will come under the heading of "Menu for All Browsers." I call the method I used in the previous series the "Simple Layout Approach." In this series, I will be following a plan I call the "Elaborated Layout Approach." 

    You will have to choose the approach you want (either the Simple Layout Approach or the Elaborated Layout Approach), depending on the advantages and disadvantages each one offers, and which are most relevant to your needs. The one I will tackle in this series has the advantages of varying widths and simplicity. If you have the patience to change the one statement I mentioned above for a browser other than Internet Explorer, Mozilla Firefox and Netscape, then the code here will work with all browsers; I will show you how to handle this later in this series. At the end of the series, I will give you suggestions that you can use to improve the flexibility of the design of the Simple Layout Approach, so if you prefer its straightforward layout, do not lose hope.

    In the previous series, the browsers I used for the tests were Internet Explorer, Mozilla Firefox, Netscape and Opera. We saw that Opera did not respond well to the code. So far as this series is concerned, the behavior of Opera and Safari to the code is similar. Safari also does not respond well to the code of the previous series. In this series, I use the same browsers, but this time I include Safari. This is not a big deal, since Opera and Safari behave in similar ways when it comes to the code we used. I have just included Safari so that you know that I am working with the major browsers.

    I will give you the complete code at the end of the series. However, you can download the following code that deals with the main aspects of this series from:


    versatileCommonMenu.ZIP


    If your browser is Internet Explorer, FireFox, Netscape, Opera or Safari, the code will work. If your browser is different and it is modern, I think the code will still work. There are very few people who do not use one of these five browsers, and few designers take the features of those less popular browser into consideration.

    Just download the file and open it in your browser.

    More HTML Articles
    More By Chrysanthus Forcha


     

    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 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek