| | |
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 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net browser button c# checkbox click commonfunctions css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit editing expose feedback fill flash form formatdecimal formview google grid gridview hosting iframe iis javascript list listbox login microsoft migration mono mouse mssql multistepregistration news numerical object objects opera panelmasterpagebuttoncontrols parent problem project radio registration reportemail richtextbox rotatepage rows save schoolproject search security session silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized update validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





