Here are the main ideas in the code

This example is drawn entirely from CodeStyle.org's example of drop-down menus. Their code is very sophisticated, with functions that write the repetitive parts of the drop-down menus. I've tried to "unwrap" that meta-code, but I've retained their functions.

They have four functions:

This code could certainly be better documented. I'll do that someday. Meanwhile, don't hesitate to ask me questions. — Scott

One unfortunate thing about this technique is that we use absolute positioning to make sure that the drop-down menus don't interfere with the placement of the main text. For an alternative solution, try drop down version.


Debugging stuff:

Viewable With Any
Browser | Valid HTML 4.01! | Valid CSS!