954,577 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

MouseOver effects in Visual Studios 2008

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!!!

CodeBoy101
Junior Poster in Training
71 posts since Dec 2007
Reputation Points: 8
Solved Threads: 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

MoralTerror
Junior Poster
127 posts since Jul 2007
Reputation Points: 11
Solved Threads: 10
 

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.

anitha joe
Light Poster
25 posts since May 2008
Reputation Points: 4
Solved Threads: 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

Bhaskar Madhav
Newbie Poster
1 post since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

@Bhaskar Madhav Welcome.

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

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You