spacer.png, 0 kB
spacer.png, 0 kB
Home arrow WEB e HTML arrow css arrow Custom CSS Cursor
Custom CSS Cursor PDF Print E-mail
Written by Administrator   
domenica, 24 agosto 2008

Using CSS you can change de default cursor icon related to a particular element. This system is really powerful but you should apply these changes based on a particular custom interface: it could be in fact counterproductive and irritating to the user.
The below table shows the different values for cursor element:

IconValueCodeBrowser
autobased on the current contextall
defaultstyle="cursor: default;"all
handstyle="cursor: hand;"IE
pointerstyle="cursor: pointer;"NS6/ IE6
hand & pointerstyle="cursor: pointer; cursor: hand"all
crosshairstyle="cursor: crosshair;"all
textstyle="cursor: text;"all
waitstyle="cursor: wait;"all
helpstyle="cursor: help;"all
inheritparent element's computed cursor valueall
movestyle="cursor: move;"all
e-resizestyle="cursor: e-resize;"all
ne-resizestyle="cursor: ne-resize;"all
nw-resizestyle="cursor: nw-resize;"all
n-resizestyle="cursor: n-resize;"all
se-resize style="cursor: se-resize;" all
sw-resize style="cursor: sw-resize;" all
s-resize style="cursor: s-resize;" all
w-resize style="cursor: w-resize;" all
progress style="cursor: progress;" IE6
all-scroll style="cursor: all-scroll;" IE6
col-resize style="cursor: col-resize;" IE6
no-drop style="cursor: no-drop;" IE6
not-allowed style="cursor: not-allowed;" IE6
row-resize style="cursor: row-resize;" IE6
url(uri) style="cursor: url(myc.ico);"
(file .cur e .ani)
IE6
vertical-text style="cursor: vertical-text;" IE6

The below example shows instead move and help cursor types:

<div style="cursor: move; width: 600px; height: 50px; background: #ccddff;"></div>
<a href="javascript:alert('Help')" style="cursor: help;">Help</a>

Help
Last Updated ( domenica, 24 agosto 2008 )
 
< Prev
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB