| | |
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!!!
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 9: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?
Views: 1039 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 activexcontrol ajax alltypeofvideos asp asp.net asp.net-mvc bc30451 bottomasp.net browser button c# chat checkbox click commonfunctions connectionstring control countryselector crystal css dataaccesslayer database datagridview datagridviewcheckbox datalist db delete development dgv dropdownmenu edit encryption expose external feedback findcontrol flash form formatdecimal forms grid gridview iframe iis iis-application impersonation index javascript john-raasch knowledge-required languages list login mac maps masterpage menu mobile mono mssql offline panelmasterpagebuttoncontrols picturebox popup-page problem profile redirect relationaldatabases save search server session silverlight sql sql-server sqlexpress-attach stop-sql-injection studio subdomain suse tracking translate-site treeview update validation vb.net view vista visual visual-studio visualstudio wcf web webdevelopment webpage website xml





