JQuery:鼠标悬停时更改图像按钮URL

Pod*_*ays 0 asp.net jquery

什么是jquery脚本来改变按钮鼠标悬停上的图像?

<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/go.png" 
            PostBackUrl="~/Rep.aspx" />
Run Code Online (Sandbox Code Playgroud)

Geo*_*ins 6

你可以用CSS做到这一点:

<style type="text/css">
    #ImageButton1:hover { background-image: url('~/your_url/here') }
</style>
Run Code Online (Sandbox Code Playgroud)