| | |
MouseOver effects in Visual Studios 2008
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
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!!!
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!!!
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
•
•
Join Date: May 2008
Posts: 25
Reputation:
Solved Threads: 0
Yes you can do that.
Do this in your stylesheet (.css file):
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
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.
Do this in your stylesheet (.css file):
css Syntax (Toggle Plain Text)
.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.
Last edited by peter_budo; Mar 26th, 2009 at 10:40 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: Font Dialog and Color Picker in ASP.NET
- Next Thread: how to convert video to swf extension?
| Thread Tools | Search this Thread |
.net 3.5 ajax alltypeofvideos appliances asp asp.net bc30451 beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox login microsoft mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





