★ wanayoo — archive 1999 http://developer.iplanet.com/viewsource/smith_menu2/menu_faq.htmlNouvelle recherche | Portail wanayoo
[an error occurred while processing this directive] [an error occurred while processing this directive]

The JavaScript Menu Component

Frequently Asked Questions


Send comments and questions about this article to View Source.

  1. Menus in Frames?
  2. Form Input Fields, and other Native Components?
  3. IE 4 Background Color?
  4. IE 5 Loading?
  5. Menu sizing?
  6. Download Source?
  7. IE 4 Mac?
  8. enableHideOnMouseOut property?

  1. Q. Menus in Frames?

    A. HTML and CSS-P-based content cannot overlap across frameset borders -- just as images can't. See the "Menus in Frames" section in the article at the following URL:

    http://developer.netscape.com/viewsource/smith_menu2/menu.html

  2. Q. Form Input Fields, and other Native Components?

    A. HTML and CSS-P-based content cannot overlap across any native OS-based components, such as: framesets, applets, or even standard Form input elements. This is a web browser limitation that you'll need to work-around, e.g. by either re-arranging your content so that the menus don't overlap across the area, or by wrapping the native components inside an CSS-P element and then hiding that element when the menu is displayed.

  3. Q. IE 4 Background Color?

    A. IE 4 has a problem with the document background color; so, you'll need to call the function that loads the menus somewhere after the Body tag (preferably at the end of the page source). See the following page source for an example of doing this:

    http://developer.netscape.com/docs/examples/javascript/menu/iefixes.html

  4. Q. IE 5 Loading?

    A. IE 5 doesn't allow DHTML to be created before the html BODY tag. My original menu article has the menu creation script being called inside the HEAD tags (as where scripts should be). However, due to this IE 5 layout problem, you now have to call a function that loads your menus somewhere after the BODY tag. See the Simple Menu page for an example of how to do this.

  5. Q. Menu sizing?

    A. To control the size of the menu box, use the following menu width and height properties:

    myMenu.menuWidth = 200;
    myMenu.menuHeight = 200;
    
    Or, you can set the pixel width and height of the menu items:
    myMenu.menuItemWidth = 200;
    myMenu.menuItemHeight = 20;
    

  6. Q. Download Source?

    A. You can download the following archive: menu.zip which contains all of the menu-related source files that go with this article (including the menu.js and frameset files).

  7. Q. IE 4 Mac?

    A. The implementation of DHTML in the Macintosh IE 4 browser has some bugs that won't allow the menus to display properly in all cases. I haven't had a time to properly look into what all the problems are, but I plan to do so soon. Any feedback from Mac developers would be very useful in helping find out how to work-around the problems here for IE 4 Mac users.

  8. Q. enableHideOnMouseOut property?

    A. Use the "enableHideOnMouseOut" menu property to make the menu disappear when the user moves the mouse out of the menu. Using this property is similar to how you use the "disableHide" property. See the "Static Menus" section in the article for more info:

    http://developer.netscape.com/viewsource/smith_menu2/smith_menu2.html


More FAQ's Coming Soon...


Further Resources


View Source wants your feedback!
Write to us and let us know
what you think of this article.


[an error occurred while processing this directive]