943,948 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1898
  • ASP.NET RSS
Mar 23rd, 2009
0

MouseOver effects in Visual Studios 2008

Expand Post »
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!!!
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
CodeBoy101 is offline Offline
71 posts
since Dec 2007
Mar 24th, 2009
0

Re: MouseOver effects in Visual Studios 2008

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
Reputation Points: 11
Solved Threads: 10
Junior Poster
MoralTerror is offline Offline
127 posts
since Jul 2007
Mar 24th, 2009
0

Re: MouseOver effects in Visual Studios 2008

Yes you can do that.
Do this in your stylesheet (.css file):
css Syntax (Toggle Plain Text)
  1. .colorchange
  2. {
  3. color:gray;
  4. }
  5. .colorchange:hover
  6. {
  7. color:black;
  8. }

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.
Reputation Points: 4
Solved Threads: 0
Light Poster
anitha joe is offline Offline
25 posts
since May 2008
Sep 16th, 2011
0

MouseOver

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bhaskar Madhav is offline Offline
1 posts
since Sep 2011
Sep 17th, 2011
0
Re: MouseOver effects in Visual Studios 2008
@Bhaskar Madhav Welcome.

Please create a new thread if you have any particular question and don't forget to read member rule.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: synchronization in asp.net with c#
Next Thread in ASP.NET Forum Timeline: Install Software by browsing to Internal Website





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC