130
edits
(→Tests) |
|||
| Line 6: | Line 6: | ||
=== Examples === | === Examples === | ||
== | === Syntax === | ||
cursor(''MODE'') | {| class="wikitable" border="1" width="700" | ||
|- | |||
! | |||
! Description | |||
|- | |||
| cursor() | |||
| this function sets the cursor to a predefined browser default. It will also turn on the cursor if it is already hidden. | |||
|- | |||
| cursor(''MODE'') | |||
| this function sets the cursor to a predefined ''MODE'' defined by the function's parameter. | |||
|- | |||
| cursor(''src'',''width'',''height'') | |||
| this function sets the cursor to an image. It is recommended to make the size of the image 16x16 or 32x32 pixels. The values for parameters ''width'' and ''height'' must be less than the dimensions of the image. otherwise, it will not load. | |||
|} | |||
== Parameters == | |||
{| class="wikitable" border="1" width="700" | |||
|- | |||
! | |||
! Description | |||
|- | |||
|''MODE'' | |||
|either ARROW, CROSS, HAND, MOVE, TEXT, WAIT|- | |||
|''src'' | |||
|the path to the image | |||
|- | |||
|''width'' | |||
|the width hotspot of the cursor | |||
|- | |||
|''height'' | |||
|the height hotspot of the cursor | |||
|} | |||
=== Bugs === | === Bugs === | ||
edits