日期:2014-05-17  浏览次数:20822 次

请教问题啦
母版页a.master 有以下
<asp:ImageButton ID="send1" ToolTip="发送" ImageUrl="../Send.gif" runat="server" Height="32" Width="32" onmouseover="ImageOver()" onmouseout="ImageOut()"></asp:ImageButton><br/>

这种图片按钮的代码一般在哪里可以写?

------解决方案--------------------
一明用js来写

<script>
jQuery("#send1").hover(function(){ImageOver();},function(){ImageOut();});
</script>
------解决方案--------------------
引用:
Quote: 引用:

一明用js来写

<script>
jQuery("#send1").hover(function(){ImageOver();},function(){ImageOut();});
</script>
要实现点击的功能怎么写?
我在 onmouseout="ImageOut()"后面加onclick = "ImageOut()" 报错。


他这个 imageover 和 imageout 应该是伪代码吧。只要是告诉你就是这么个大概的样子。