Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to highlight parent menu item while hovering on submenu in DNN Nav 2?How to highlight parent menu item while hovering on submenu in DNN Nav 2?
Previous
 
Next
New Post
11/7/2010 1:16 AM
 
I am using the DNN Nav 2 menu in the header.ascx for my skin.  I've noticed now on several sites I have completed that the main menu item will not stay highlighted while the mouse is hovering over its submenu items.  Studying the rendered document object tree, I notice that the main menu item is a <span> followed by a <table> that represents the submenu.  How can I make the main menu item remain highlighted while the mouse hovers over the submenu items?

I notice some interesting detail.  If I style the submenu such that there is a margin between the table and the cells, the following behavior is exhibited:  while the mouse is over the cells the main menu item is not highlighted.  However, if the mouse is moved out into the margin around the submenu cells then the main menu item is highlighted again. 

Here is the main menu item highlight:

.headMenu .root.hov
{
    vertical-align: middle;
    background-color: #fff;
    color: #0080b1;
}

Then the submenu rollover:

.headMenu tr.hov td
{
    color: #fff;
    background: none;
    background-color: #f58832;
    text-decoration: none;
}

How do I link these two such that hovering over the latter activates the former.

Regards,
Guy..Lister
CSI
513-252-7191



 

 
New Post
11/7/2010 7:01 PM
 
I don't think you can with DNNNav. When I've seen it done in the dnn360.net menu skin object, they are assigning a special class to each parent item in the currently hovered "branch" and so far I don't see that happening in DNNNav, but maybe in future releases... for now, it only works on the breadcrumb items. If that feature is important to you, you can purchase a developer license that would allow you to use the Navigation Suite from dnn360 on any number of sites. You'd have to check their licensing to determine what is covered by their various license types.

JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
4/23/2011 6:39 AM
 
Hi Guy Lister,

I have same issues. Have you got solution for this? I am using DNN 5.

How to highlight the parent menu item when user mouse hover on the sub menu.

Thanks,
Ruchir
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to highlight parent menu item while hovering on submenu in DNN Nav 2?How to highlight parent menu item while hovering on submenu in DNN Nav 2?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out