Mouseover dropdown menu

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Calvin KD (CalvinKD_at_discussions.microsoft.com)
Date: 10/25/04


Date: Mon, 25 Oct 2004 01:11:03 -0700

Hi everyone,
Can someone show me or point me in the right direction as how to create a
"dropdown menu" which displays the menu items as a separete layer over the
top of the contents of the page below it. In classic ASP, I used xml, xsl,
css and htc to render the menu (with frames). Now in .NET I don't know how to
replicate the menu.
Menu.xml looks like
<?xml version="1.0" encoding="utf-8" ?>
<Menu menuText="Click here to access this applications menu." menuImage="">
    <MenuGroup TYPE="FR" menuText="Financial Reports" menuImage=""
Roles="[ANY]">
        <MenuItem menuText="Report 1" Roles="[ANY]" compressImage="Y"
menuImage="" menuTarget="frmeMain" menuAction="somepage.aspx" />
    </MenuGroup>
</Menu>

Menu.xsl looks like
<xsl:style*** version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:menuns="menu">
        <xsl:output method="html" />
        <xsl:param name="pRole" select="''"/>
        <xsl:template match="Menu">
                <menuns:menu>
                        <xsl:attribute name="id">root</xsl:attribute>
                        <xsl:attribute name="rootType"><xsl:value-of
select="./@rootType"/></xsl:attribute>
                        <xsl:attribute name="menuImage"><xsl:value-of
select="./@menuImage"/></xsl:attribute>
                        <xsl:attribute name="menuText"><xsl:value-of
select="./@menuText"/></xsl:attribute>
                        <xsl:apply-templates select="./node()" />
                </menuns:menu>
        </xsl:template>

        <xsl:template match="MenuGroup">
                <menuns:menu>
                        <xsl:attribute name="menuImage"><xsl:value-of
select="./@menuImage"/></xsl:attribute>
                                                        <xsl:attribute name="compressImage"><xsl:value-of
select="./@compressImage"/></xsl:attribute>
                                                        <xsl:attribute name="menuText"><xsl:value-of
select="./@menuText"/></xsl:attribute>
                                                        <xsl:apply-templates select="./node()" />
                                                </menuns:menu>
        </xsl:template>

        <xsl:template match="MenuItem">
        <menuns:menu>
                                                        <xsl:attribute name="menuImage"><xsl:value-of
select="./@menuImage"/></xsl:attribute>
                                                        <xsl:attribute name="compressImage"><xsl:value-of
select="./@compressImage"/></xsl:attribute>
                                                        <xsl:attribute name="menuText"><xsl:value-of
select="./@menuText"/></xsl:attribute>
                                                        <xsl:attribute name="menuTarget"><xsl:value-of
select="./@menuTarget"/></xsl:attribute>
                                                        <xsl:attribute name="menuAction"><xsl:value-of
select="./@menuAction"/></xsl:attribute>
                                                </menuns:menu>
        </xsl:template>
</xsl:style***>

Any help is greatly appreciated.


Quantcast