Mouseover dropdown menu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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:stylesheet 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:stylesheet>

Any help is greatly appreciated.
 
the easiest thing to do at this point may be to put your existing classic
asp code into a js file, and from asp.net, call the appropriate function in
the file.
 
Back
Top