Hi,
We have a cascading navigation menu, when we mouse over the items the they
are marked, if an item has a sub section a new sub menu (a child) is
displayed. The problem is that when we mouse over the items of the second
menu the items are marked but the item which launch the sub level (the
parent) lose the mark and we want to keep it marked to show the navigation
through the sub levels of the cascading menu.
The structure of the menu is stored in an xml file, renderized by an xslt
file and css classes to mark the menu titles, when a menu have sub menu we
call to a jscript fucntion to hide/show the sub menu.
Thanks and regards,
Raul.
Bruce Barker - 12 Sep 2005 17:07 GMT
you are probably using hover to control marking, you will need you client
scipt to mark the item when you open a sub-menu (and restore markup on
display)
-- bruce (sqlwork.com)
> Hi,
>
[quoted text clipped - 10 lines]
> Thanks and regards,
> Raul.
Raul Martin - 13 Sep 2005 08:31 GMT
Yes that's the way we are trying (on hover we use a css class to mark the
item and a script to mark a new item if a sub-menu is opened) but we are not
sure on how to restore/keep markup the 'parent' menu item; any idea would be
appreciated.
<xsl:choose>
<xsl:when test="child::SubMenuLevel2">
<xsl:attribute
name="onMouseOver">this.className='CASMenuRowLevel1On';showObj();</xsl:attribute>
<xsl:attribute
name="onMouseOut">this.className='CASMenuRowLevel1Off';hideObj()</xsl:attribute>
</xsl:when>
</xsl:choose>
function javascript to check show/hiide menu/sub-menu
{
obj.style.display = 'none';
if (document.all.ddlChannelListLayer)
{
document.all['ddlChannelListLayer'].style.visibility = 'visible';
}
Thanks a lot, Raul.
> you are probably using hover to control marking, you will need you client
> scipt to mark the item when you open a sub-menu (and restore markup on
[quoted text clipped - 16 lines]
> > Thanks and regards,
> > Raul.