鼠标滑过imagebutton或button的事件

helloqiqi 2003-10-16 04:48:28
想控制鼠标滑过button时,使button产生凹下去的效果,怎么写。
ImageButton1.Attributes["onmouseover"]="?";
ImageButton1.Attributes["onmouseout"]="?";
...全文
141 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
huofenghuang 2003-10-17
  • 打赏
  • 举报
回复
在客户端其实就只是image标记
huofenghuang 2003-10-17
  • 打赏
  • 举报
回复
imagebutton.src
helloqiqi 2003-10-16
  • 打赏
  • 举报
回复
请问那些具体的属性名称是什么?
2002pine 2003-10-16
  • 打赏
  • 举报
回复
用两张图,最简单,mouseover换一张,mouseout换回,
zsww 2003-10-16
  • 打赏
  • 举报
回复
学习!!!

-----------努力学习 不断实践 虚心讨教---------
guoyan19811021 2003-10-16
  • 打赏
  • 举报
回复
你可以在ImageButton1.Attributes["onmouseover"]="?";
ImageButton1.Attributes["onmouseout"]="?";
设置当正常时button上、左边框为黑色,下、右为白色,当滑过时相反。

yaotiebing 2003-10-16
  • 打赏
  • 举报
回复

datagrid 中跟踪鼠标移动:
DataGrid.Items(i).Attributes.Add("onMouseOver", "Currentcolor=this.style.backgroundcolor;this.style.backgroundColor='#f0f5ff';this.style.color='red';")
DataGrid.Items(i).Attributes.Add("onMouseOver", "Currentcolor=this.style.backgroundcolor;this.style.backgroundColor='#f0f5ff';this.style.color='red';")

62,025

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧