Results 1 to 5 of 5

Thread: Smooth Navigational Menu (v1.4) CSS questions

  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Smooth Navigational Menu (v1.4) CSS questions

    1) Script Title: Smooth Navigational Menu (v1.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) Describe problem: Thanks for Smooth Navigational Menu!

    How do I:

    1) set a top-level menu item's background color for the case when it's 'On' - regardless of the top or sub menu's hover state?

    2) stop the (rightmost) sub menus from repositioning themselves if they're too close to the window's right edges?

    Thanks!
    Last edited by msealey; 06-30-2010 at 07:11 PM.

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

    Default

    For the later, try and comment out the below line inside the .js file:
    Code:
    					//menuleft=(header._offsets.left+menuleft+header._dimensions.subulw>$(window).width())? (header.istopheader && setting.orientation!='v'? -header._dimensions.subulw+header._dimensions.w : -header._dimensions.w) : menuleft //calculate this sub menu's offsets from its parent
    For the former, how do you define "on"? If you mean have the menu item that corresponds to the current page be highlighted automatically, the issue is not so much how to highlight the menu item as it is how to detect which menu item corresponds to the current page. The later is more tricky, and depends on a few factors such as the structure of your URLs.
    DD Admin

  3. #3
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks; I've written a new class to correspond to the 'On' state, and can attach it to the relevant 'tab' in our CMS.

    Am still looking for a way to suppress that right move, please :-)

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

    Default

    Am still looking for a way to suppress that right move, please :-)
    Did you try commenting out the line I mentioned above?
    DD Admin

  5. #5
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. I'll give that a try. Your help appreciated!

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
  •