Advanced Search

Results 1 to 3 of 3

Thread: Slashdot menu - Menu Item with no sub menu

  1. #1
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slashdot menu - Menu Item with no sub menu

    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...

  2. #2
    Join Date
    Feb 2007
    Posts
    36
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I tried also (unsuccessfully)
    Suspect the js would need to be adjusted, not just the css. Would be cool if someone would do it.

  3. #3
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    76
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    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;
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •