Have working nav bar with submenus.
When a button is chosen the color changes to mouseover color if the button itself is clicked. If one of the pages listed in submenu is chosen the top level button returns to the mouseoff color.

Is there a piece of code I could add that would cause the button color to change to mouseover if the submenu item is chosen?

I have an external menu builder that can do that but I wanted to stay with XDP options.