Thanks for the suggestion Imar.
I can't see that anything is being overwittn.
In my aamaster page I have the menu set ip as :
Code:
<div id="menu">
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal"
DataSourceID="SiteMapDataSource1" cssClass="menu" align="center"
StaticEnableDefaultPopOutImage="False">
<StaticSelectedStyle CssClass="StaticSelectedStyle" />
<StaticMenuItemStyle CssClass="StaticMenuItemStyle" />
<StaticHoverStyle cssclass="StaticHoverStyle"/>
<DynamicMenuItemStyle CssClass="DynamicMenuItemStyle" />
<DynamicHoverStyle cssclass="DynamicHoverStyle"/>
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
</div>
Re the : hover....
I have tried:
Code:
.StaticSelectedStyle, .StaticSelectedStyle:visited, StaticSelectedStyle:hover
and
Code:
.StaticSelectedStyle, .StaticSelectedStyle:visited, StaticSelectedStyle:a
Is this what you meant?
neither has any affect: the main menu item goes to the Hover style when I hover, but reverts to the statis style when I hover over or select a Dynamic item The Dynamic items behave as expected.
If I select a menu item, the StaticSelected style applys and sticks when I hover over dynamic items. As soon as I select a dynamic item the main item reverts to the staticmenuitem style.
My web.sitemap looks like this:
Code:
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/" title="" description="" >
<siteMapNode url="~/default.aspx" title="Home" description="Home page" />
<siteMapNode url="~/Profile.aspx" title="About" description="About xxx" />
<siteMapNode url="~/Testimonials.aspx" title="Testimonials" description="Testimonials" />
<siteMapNode url="~/Products.aspx" title="Products/Services" description="Products or Services">
<siteMapNode url="~/product1.aspx" title="Product 1" description="Products or Services"/>
<siteMapNode url="~/product2.aspx" title="Product 2" description="Products or Services"/>
</siteMapNode>
<siteMapNode url="~/Contact.aspx" title="Contacts" description="Contact Us" />
</siteMapNode>
</siteMap>
Any additional help welcomed.