Monday, January 17, 2011

onmouseover="JavaScript:this.style.cursor='hand'" not working in Firefox

hi all, this is a small CSS issue which I came across today, and was able to fix it out. This code below works wells with IE, but not with Firefox on mouse-over of an image/ div .

< div >
< asp:Image ID="Image1" runat="server" ImageUrl="~/Images/chat.png" onmouseover="JavaScript:this.style.cursor='hand' " / >
< /div >


The solution is to replace "hand" with "pointer".

< div >
< asp:Image ID="Image1" runat="server" ImageUrl="~/Images/chat.png" onmouseover="JavaScript:this.style.cursor='pointer' " / >
< /div >
cause, The standard is "pointer", not "hand". "hand" is for IE 4/5.

Regards,
Lushanthan. S

No comments:

Post a Comment