Log in

View Full Version : Slashdot menu - Menu Item with no sub menu



101wt
05-15-2007, 08:41 AM
1) Script Title: SLash dot Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/slashdot.htm

Has any one editing the Slashdot menu to include menu items that do not have sub menus and just jump straight to a page when clicked?

I have attempted to get this to work but can not get the right combination of CSS rules to apply. Any tips / advise would be great.

Thanks in advance.

Phil

PS: New to the forum to ask a question, hopefully I will be answering questions soon enough...

Peter Johnson
05-15-2007, 01:54 PM
I tried also (unsuccessfully)
Suspect the js would need to be adjusted, not just the css. Would be cool if someone would do it.

Ictinus
05-15-2007, 10:57 PM
You could go with something like this for sdmenu.css, but you need to add a class to all your standard links (<a class="sl" >), leaving any <a> around title spans without a class.

<div>
<a href="#"><span>Online Tools</span></a>
</div>

==== sdmenu.css ===
div.sdmenu {
width: 150px;
font-family: Arial, sans-serif;
font-size: 12px;
padding-bottom: 10px;
background: url(bottom.gif) no-repeat right bottom;
color: #fff;
}
div.sdmenu div {
background: url(title.gif) repeat-x;
overflow: hidden;
}
div.sdmenu div:first-child {
background: url(toptitle.gif) no-repeat;
}
div.sdmenu div.collapsed {
height: 25px;
}
div.sdmenu div span {
display: block;
padding: 5px 25px;
font-weight: bold;
color: white;
background: url(expanded.gif) no-repeat 10px center;
cursor: default;
border-bottom: 1px solid #ddd;
}
div.sdmenu div.collapsed span {
background-image: url(collapsed.gif);
}
div.sdmenu div a.sl, div.sdmenu div a.current {
padding: 5px 10px;
background: #eee;
display: block;
border-bottom: 1px solid #ddd;
color: #066;
}
div.sdmenu div a.current {
background : #ccc;
}
div.sdmenu div a.sl:hover, div.sdmenu div a.current:hover {
background : #066 url(linkarrow.gif) no-repeat right center;
color: #fff;
text-decoration: none;
}