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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top