CSS Library: Horizontal CSS Menus: Here
SuckerTree Horizontal Menu
Author: Dynamic Drive
SuckerTree Horizontal Menu is a CSS and DOM hybrid menu that's list based and supports multiple levels of sub menus. 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 and positioning behavior to them. You can even have multiple SuckerTree menus on the same page.
See also: SuckerTree Vertical Menu.
Demo:
The two bullet images used:
![]()
The CSS:
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 30 of 32 pages « First < 28 29 30 31 32 >
For all those with FLASH problems (menu behind flash); Make sure to publish your flash with the Window Mode in HTML set to Transparent Windowless.
i add this code to my user page but can any one help me if i click the Item 1 it will show the full content to the bottom
I use IE 6.0, but error:
Error: 'document.getElementById(...)' is null or not an object
Please help me ! Thanks before.
Error: 'document.getElementById(...)' is null or not an object
Please help me ! Thanks before.
What's with the extra </a> closing tag near the end of your HTML?
string:
</ul>
</a>
</li>
string:
</ul>
</a>
</li>
I like this script but if you add a style to the last html line (see below), it does not work. Anyone know how to get around this?
Rest of content here
Rest of content here
Sorry, it dropped the line.
style='position: absolute; left: 150px; top: 30px;' id="iepara" Rest of content here
style='position: absolute; left: 150px; top: 30px;' id="iepara" Rest of content here
hey all, i have tried to use the menu and it looks freat in latest versions of all browsers with exception of IE previous versions. it does not show correctly at all. can anynbody help? please
Thanks Jchalos,
It helped me.
It helped me.
I managed to fix the height problem in IE 7. Hope it helps others as well,
1)Create one more sub folder icon style
For Example:
. suckertreemenu .subfoldericonie{
background: maroon url(media/arrow-right.gif) right center no-repeat; border: 1px solid black; margin-bottom: -3px;
}
2) In javascript detect the browser and if it is ie 7
then chose the sub folder icon style as the newly created style
if( IE7 )
{
ltags[t][removed].getElementsByTagName("a")[0].className="subfoldericonie";
}
else
{
ltags[t][removed].getElementsByTagName("a")[0].className="subfoldericon";
}
Commenting is not available in this weblog entry.
1)Create one more sub folder icon style
For Example:
. suckertreemenu .subfoldericonie{
background: maroon url(media/arrow-right.gif) right center no-repeat; border: 1px solid black; margin-bottom: -3px;
}
2) In javascript detect the browser and if it is ie 7
then chose the sub folder icon style as the newly created style
if( IE7 )
{
ltags[t][removed].getElementsByTagName("a")[0].className="subfoldericonie";
}
else
{
ltags[t][removed].getElementsByTagName("a")[0].className="subfoldericon";
}


removed chord (from css) by me is only
.suckertreemenu ul li a:hover{
background-color: black;
color: white;
}
Can any body please send me the fix to IE.highly appreciate your effort.thank you in advanced.