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:


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