Universal Related Popup Menus / Future Improvements
Universal Related Popup Menus
We could, however, use the "hidden frame" trick to direct users to browser-optimized pages, one of which could be an Explorer/ActiveX page (see Cool Central for an example of the hidden frame trick).
WYSIWYG - If we (or one of you intrepid readers) could figure out a way to avoid the resize problems we found with document.writes, we could include the ActiveX code. Any solutions? If you find one, we'll mention your name in the next version of this article and the home page's source code.
Object/Feature Supported Method - The most bulletproof way to conditionally run code is to check if the specific feature(s) or object(s) you're using are supported.
Thanks to Peter Belesis of Dynamic HTML Lab for this elegant solution.
Fourth Related Menu
For the more adventurous among you, consider adding a fourth related menu. You can extend the techniques we used in our three related menus (use a simulated 4-D array) to control a fourth or even fifth menu. Our site is not that deep, hierarchically speaking, so we felt that this wasn't necessary. For more levels, or if you want to trigger menus off of graphics or links, try Peter Belesis' popular hierarchical menus that have an infinite number of levels.
<FORM NAME="menu1" METHOD="POST" ACTION="/cgi-bin/redirect.cgi"
onSubmit="return false" TARGET="_top">
HTML 4 Nested Menus
The new HTML spec allows one-level deep nested pull-down menus with the new option group (optgroup) tag. Unfortunately, current browsers and the current version of Gecko don't yet support this new feature. See Webreview.com, Dec. 18, 1998 for details.
The current version of the code has been tweaked and refined since Netscape 3.0b1 came out but there's always room for improvement. If you think of any, especially those that make the code more generic or smaller, let me know and I'll give you credit in this article.
Comments are welcome
Created: Mar. 10, 1997
Revised: Feb. 12, 1999