DotNet tips , change onmouseover cursors … with some strange problems with browsers
as all of us that work with DotNet to producing Web Application and fight with company styles, some times we need to change some attributes of style in a page….
now i need to change the cursor pointer from ‘default’ to ‘hand’ on a asp button, as we now with di MS DotNet framework 2.0 we can do this :
1 2 3 4 5 6 |
<asp:Button ID="btnInserisciSingolo" runat="server" BorderColor="Black" BorderStyle="Solid" Font-Bold="True" ForeColor="#008000" Height="19px" Text="Inserisci" Width="160px" BorderWidth="1px" Font-Names="Tahoma" Font-Size="9pt" onclick="btnInserisciSingolo_Click" BackColor="#E8E8E8" onmouseover="this.style.cursor='hand';"/> |
using “onmouseover” attibutes , the can be used from code behind too usig attribues.add etc.. with explorer 8.0 it was al good when i select the buttun the cursor change all well , but with firefox the cursor remain the ‘Default’… ach…
i found on internet that you need to use “pointer” end not ‘hand‘ like this
1 2 3 4 5 6 |
<asp:Button ID="btnInserisciSingolo" runat="server" BorderColor="Black" BorderStyle="Solid" Font-Bold="True" ForeColor="#008000" Height="19px" Text="Inserisci" Width="160px" BorderWidth="1px" Font-Names="Tahoma" Font-Size="9pt" onclick="btnInserisciSingolo_Click" BackColor="#E8E8E8" onmouseover="this.style.cursor='pointer';"/> |
stay tuned to next tip
bye ivan