CSS Library: Vertical CSS Menus: Here
SuckerTree Vertical Menu (v1.1)
Author: Dynamic Drive
Nov 8th, 06: Fixed rendering issue in IE7, plus added support for automatic detection of sub menus width. No more configuring the "left" attributes!
This is a vertical, predominantly CSS based (with a touch of JavaScript) multi-level menu. It supports as many sub levels as you desire, plus multiple Suckertree menus on the same page. The CSS and JavaScript automatically adopts to your HTML code in each case.
The trick to Suckertree is a small adoptable piece of JavaScript that crawls the inner levels of a list menu and assigns the appropriate show/hide behavior to them. This differs from Suckerfish menu, which merely uses JavaScript to compensate for IE's shortcomings when it comes to CSS, so the menu is more rigid and requires manual changes to the CSS as the number of levels in your menu changes.
Demo:
The single image:
The CSS:
Rate this code:
Date Posted: 11/08/2006
Revision History: Updated Nov 8th, 06' to version 1.1
Usage Terms: Click here
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 10 of 28 pages « First < 8 9 10 11 12 > Last »
The Demo does work in IE 5.5, but it doesn't function properly with NS 7.1
Thanks for a great script!
i read all your comments and they really helped me so much about modify this menu. but still there is a problem for me and thats , what if i want to have menu open right to left ?
i will appreciate your help.
Also, I've gone ape with my menu, getting quite large with numerous layers. It's time to migrate the list's HTML to an external file. I've tried this, but just ended up deactivating the flyout feature. Any suggestions, or anyone done work on this? I mean a JS solution. SSI would be nice, but as for PHP I'm not ready to take Ben up on his generous offer -- just yet.
TIA
<div class="suckerdiv">
<ul id="suckertree1">
<li>Item 1</li>
<li>Item 2</li>
<li>Folder 1
<ul>
<li>Sub Item 1.1</li>
<li>Sub Item 1.2</li>
</ul>
</li>
<li>Item 3</li>
<li>Folder 2
<ul>
<li>Sub Item 2.1</li>
<ul>
<li>Sub Item 2.1.1</li>
<li>Sub Item 2.1.2</li>
<li>Sub Item 2.1.3</li>
<li>Sub Item 2.1.4</li>
</ul>
<li>Folder 4.1</li>
<ul>
<li>Sub Item 4.1.1</li>
<li>Sub Item 4.1.2</li>
<li>Sub Item 4.1.3</li>
<li>Sub Item 4.1.4</li>
</ul>
</ul>
</li>
<li>Item 4</li>
</ul>
</div>
Your submenus need to be nested inside the list tags, i.e. between <li> and </li>. The closing tag </li> shouldn't be on the same line as either Sub Item 2.1 or Folder 4.1. Put it after the corresponding closing tag </ul>, like Folders 1 and 2 do.
Cheers
Comment Pages 10 of 28 pages « First < 8 9 10 11 12 > Last »
Commenting is not available in this weblog entry.




I use it in ASP.