Results 1 to 2 of 2

Thread: Help with slashdot menu

  1. #1
    Join Date
    Jul 2006
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with slashdot menu

    1) Script Title: slashdot menu

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

    3) Describe problem: Ther menu works great. I need help to change text color of a menu item that the page is being displayed. Is it possible?

    Thank you!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, you could extend the style used when the mouse moves over a menu item to that of the currently selected page. Inside menu.css, find and change:

    Code:
    .sdmenu .submenu a:hover,  .sdmenu .submenu a#currentpage{
        background : #066 url(linkarrow.gif) no-repeat right center;
        color: #FFF;
    }
    Code in red is new. Then inside the HTML for the menu:

    Code:
    <div class="sdmenu">
          <span class="title" id="top"><img src="slashfiles/expanded.gif" class="arrow" alt="-" />Online Tools</span>
          <div class="submenu">
            <a href="http://tools.dynamicdrive.com/imageoptimizer/">Image Optimizer</a>
            <a href="http://tools.dynamicdrive.com/favicon/">FavIcon Generator</a>
            <a href="http://www.dynamicdrive.com/emailriddler/" id="currentpage">Email Riddler</a>
            <a href="http://tools.dynamicdrive.com/password/">htaccess Password</a>
            <a href="http://tools.dynamicdrive.com/gradient/">Gradient Image</a>
            <a href="http://tools.dynamicdrive.com/button/">Button Maker</a>
          </div>
    The "Email Riddler" link in this case would be selected.

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
  •