473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Mouseover dropdown menu

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.

Nov 18 '05 #1
2 2741
TJS
try www.skmMenu.com

"Calvin KD" <Ca******@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
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.

Nov 18 '05 #2
Thank you so much. It works wonderfully.

"TJS" wrote:
try www.skmMenu.com

"Calvin KD" <Ca******@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
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.


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: LG | last post by:
I have asked before but I did not get all the answer I wanted. Perhaps I explained too bad. I have my site in frames, and the dropdown list is in the 'left' frame, and I have used javascript so...
8
by: al | last post by:
Hi, I've been trying to create a image mouseOver effect using CSS - is this possible? Or will I have to use DIV tags or something along those lines? I've tried a number of things - the code...
1
by: Dino Buljubasic | last post by:
Hi, I have a toolbar with several buttons on it, one of which is set up to be as a DropDown button. I also have a context menu with menu items assigend to it so when I click that button, my...
4
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown...
2
by: William Youngman | last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a...
1
by: redgoals | last post by:
Hi, I have searched the forum for a similar problem but have been unable to find anything. What i am trying to achieve is a dropdown menu which behaves in the following way: 1, Someone...
1
by: SunshineInTheRain | last post by:
The following code is dynamic create dropdownmenu which data within pulled from database However, the code work well on IE but not on Firefox. On Firefox, the whole mouseover and mouseout function...
19
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
7
by: Microsoft Newsserver | last post by:
Hi, Simple question, probably a simple answer hopefully. I am working with VS2005/2.0 and this is an Explorer project IE6/IE7. The issue is I need to be able to mouseover the options in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.