如何给 <asp:Image>或<asp:ImageButton>添加onmousemove,onmousedown..事件
<asp:Image ID="Image_head" runat="server" ImageUrl="OnlineQQ/head.gif" onmousemove="this.style.border='1';" onmouseout="this.style.border='0';" onmousedown="this.style.border='2';" border="0" />
我是这样写的可是放上去没反映
<asp:Image ID="Image_head" runat="server" ImageUrl="OnlineQQ/head.gif" onmousemove="this.style.border='1';" onmouseout="this.style.border='0';" onmousedown="this.style.border='2';" border="0" />
我是这样写的可是放上去没反映
if(!IsPostBack)
{
Image_head.Attributes.Add("xx","xx")
}