Microsoft Internet Explorer 4+ and Netscape 6+ supports customized cursors defined with CSS.
Although the cursors will not have the customized look in other browsers it usually doesn't ruin anything. These browsers will simply show the normal arrow-cursor which would be same case as if you refrained from customizing cursors at all.
So unless the page really doesn't work without the customized cursor there shouldn't be technical reasons for choosing not to.
However there might be other reasons for thinking twice before adding custom cursor to your pages. Many users are easily confused or irritated when a site breaks the standard user interface.
CURSOR PROPERTIES
4P:problems, 4M:Mac only, 4W:Windows only
ADDING A CUSTOMIZED CURSOR
The syntax for a customized cursor is this:
(Position the mouse over each link to see the effect)
Selector {cursor:value}
For example:
The links from the above example would look like this:
REDEFINING THE CURSOR FOR ENTIRE PAGES
If you want to redefine the cursor so that it's not only showing up when moved over a link, you simply specify the desired cursor using the body-selector.
For example:
Click here to open a window that shows the result of the above example.
REDEFINING THE CURSOR FOR AREAS ON A PAGE
If you want one look of the cursor in one area of the page and another look of the cursor in another area you can do it with context dependant selectors.
This way, you create different styles for links, that are dependant on the context. Now if the context is set with a dummy tag, such as <span> you don't have to specify the desired style each and every time there is a link in the section.
For example:
The links from the above example would look like this:
Although the cursors will not have the customized look in other browsers it usually doesn't ruin anything. These browsers will simply show the normal arrow-cursor which would be same case as if you refrained from customizing cursors at all.
So unless the page really doesn't work without the customized cursor there shouldn't be technical reasons for choosing not to.
However there might be other reasons for thinking twice before adding custom cursor to your pages. Many users are easily confused or irritated when a site breaks the standard user interface.
CURSOR PROPERTIES
|
4P:problems, 4M:Mac only, 4W:Windows only
ADDING A CUSTOMIZED CURSOR
The syntax for a customized cursor is this:
(Position the mouse over each link to see the effect)
Selector {cursor:value}
For example:
|
The links from the above example would look like this:
CROSS LINK HELP LINK |
REDEFINING THE CURSOR FOR ENTIRE PAGES
If you want to redefine the cursor so that it's not only showing up when moved over a link, you simply specify the desired cursor using the body-selector.
For example:
|
Click here to open a window that shows the result of the above example.
REDEFINING THE CURSOR FOR AREAS ON A PAGE
If you want one look of the cursor in one area of the page and another look of the cursor in another area you can do it with context dependant selectors.
This way, you create different styles for links, that are dependant on the context. Now if the context is set with a dummy tag, such as <span> you don't have to specify the desired style each and every time there is a link in the section.
For example:
|
The links from the above example would look like this:
CROSS LINK 1 CROSS LINK 2 CROSS LINK 3 HELP LINK 1 HELP LINK 2 HELP LINK 3 |
0 comments:
Post a Comment