Change Control Color While Mouse Enters

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...
 
A

Alvin Bruney

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,629
Members
45,334
Latest member
66Zeinab9

Latest Threads

Top