The controls are ImageButtondisplayed as an element <input type="image" />, and the property ImageUrlbecomes an attribute src, for example:
<input type="image" src="/_layouts/Right_GrayArrow.png" />
Therefore, you apply a background image to it, which you cannot see when the image srcoverlays on top of it.
You have 2 options:
1) Change ImageButtonto use background image:
.RightArrow
{
width:
height:
background-image:url('/_layouts/Right_GrayArrow.png');
}
.RightArrow:hover
{
background-image: url('/_Layouts/Right_GreenArrow.png');
}
, <asp:Button />. <asp:ImageButton />, src.
2) jQuery :
$(".RightArrow").hover(function(){
$(this).attr("src", "/_Layouts/Right_GreenArrow.png");
},
function(){
$(this).attr("src", "/_Layouts/Right_GrayArrow.png");
});
, javascript, jQuery.