您现在的位置是:首页
>
不属于鼠标事件的是 C#.NET的鼠标事件
C#.NET的鼠标事件 我网页上有一个 utto 它的标签是 确定 我想设置下 当鼠标放到按钮上方的时候 确定 变成红颜色的 确定 代码不会写! 大家帮帮哦~~~ 回答fu ctio
C#.NET的鼠标事件
我网页上有一个 button 它的标签是 确定
我想设置下 当鼠标放到按钮上方的时候 确定 变成红颜色的 确定
代码不会写!
大家帮帮哦~~~

回答
function ChangeColor()
{
document getElementById( <%= Button ClientID %> ) style color = red ;
}
后面一个方法也这么改
<head runat= server > <title>无标题页</title> <script type= text/javascript language= javascript > function ChangeColor() { document getElementById( Button ) style color= red ; } function Resume() { document getElementById( Button ) style color= black ; } </script></head><body> <form id= form runat= server > <div > <asp:Button ID= Button onmouseout= Resume(); onmouseover= ChangeColor(); runat= server OnClick= Button _Click Text= Button /></div> </form></body></> lishixinzhi/Article/program/net/201311/15632 很赞哦! (1054)