Mouseover dropdown menu

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:eek:utput 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.
 
G

Guest

Thank you so much. It works wonderfully.

TJS said:
try www.skmMenu.com



Calvin KD said:
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:eek:utput 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top