PC Review


Reply
Thread Tools Rate Thread

Change Control Color While Mouse Enters

 
 
Angel
Guest
Posts: n/a
 
      1st Jan 2004
How do you change the color of a control when the mouse
enters the area of the control? And then change it back to
the original color when the mouse exits the control?

The Server controls do not have a Mouse Event that I can
code this....

Thanks...
 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      1st Jan 2004
in your page load event do this assuming your control is named add


Add.Attributes.Add("onmouseover","document.all['Add'].style.color='red';");

Add.Attributes.Add("onmouseout","document.all['Add'].style.color='ivory';");


--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/2bz4t
"Angel" <(E-Mail Removed)> wrote in message
news:002c01c3d098$1a47def0$(E-Mail Removed)...
> How do you change the color of a control when the mouse
> enters the area of the control? And then change it back to
> the original color when the mouse exits the control?
>
> The Server controls do not have a Mouse Event that I can
> code this....
>
> Thanks...



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change my mouse highlight color? Mona Microsoft Word Document Management 0 20th Nov 2009 02:58 PM
change gridview color on mouse out fredd00 Microsoft ASP .NET 2 9th Mar 2007 04:46 PM
Datagrid control to change the row color on Mouse click event karunakar Microsoft ASP .NET 1 31st Jan 2005 09:33 AM
Datagrid control to change the row color on Mouse click event karunakar Microsoft C# .NET 0 31st Jan 2005 04:47 AM
Datagrid control to change the row color on Mouse click event karunakar Microsoft C# .NET 0 31st Jan 2005 04:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:46 PM.