dhtml menu tree #7 (treemenu7) is shown below. please view the source for this page and look at the code. documentation is in the treemenu7.js file. menu system is currently under GPL3 license.
treemenu7 Copyright 2007 Jim Michaels This file is part of treemenu7. treemenu7 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. treemenu7 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with treemenu7. If not, see http://www.gnu.org/licenses/ The source code for treemenu7 can be found at
dhtml menu tree #7 (treemenu7) is shown below. please view the source for this page and look at the code. documentation is in the treemenu7.js file.
treemenu7 is under the GPL3 license. that means you can modify it and distribute it as will but you need to make sure somebody can get the source code (probably by view|source I would guess would be sufficient, or putting a comment in your html that has a link to this page).
The code works successfully in all major up-to-date browsers, the only problem I have had is with Google Chrome using a local file (file://) and that only affects developers.
The extra floated and aligned div tags were added to show you what happens if you add these sorts of things. in short, align starts a new line, and float makes a mess of the menu. that's the problems of HTML for you.