0

Hi all!

I am using Visual Studio 2008 and I was wondering is there a way to get the colour of text in a menu item to change color during a mouse over. So for example, if I was cycling through a list of items, the item that was currently selected would be black, and all other items would be grey.

Thanx in advance!!!

5
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by __avd
0

Yes create a css class in a stylesheet for the text color you want then from the menu properties under Styles you can enter the class name in the CssClass field for DynamicHoverStyle and/or StaticHoverStyle

0

Yes you can do that.
Do this in your stylesheet (.css file):

.colorchange
{
color:gray;
}
.colorchange:hover
{
color:black;
}

In your code file whereever you are creating the menu, include the created style name(colorchange).
for example if its a link, do the following <a class="colorchange" href="[your link]">Item1</a> The above code will keep the color of the text(Item1) as gray normally but when you hover(do a mouse over), color will change to black.

Hope that helps.

0

Hi Team,

I have a previously existed code for that i want some special efects like MouseOver.I am using ASP.Net will u guide me in which way i have to reach the MouseOver and Give some Ideal Coding to Analyse.

Thanks,
Bhaskar

0

@Bhaskar Madhav Welcome.

Please create a new thread if you have any particular question and don't forget to read member rule.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.