Change Control Color While Mouse Enters

  • Thread starter Thread starter Angel
  • Start date Start date
A

Angel

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...
 
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';");
 
Back
Top