| | |
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 |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax alltypeofvideos anathor appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash folder form gridview gudi iis image javascript list listbox login maps microsoft mobile mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail richtextbox schoolproject search security select sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visualstudio vs2008 web webapplications webdevelopment webprogramming webservice wizard xsl





