Education/Projects/ProcessingForTheWeb/cursor: Difference between revisions

Jump to navigation Jump to search
Line 6: Line 6:
=== Examples ===
=== Examples ===


== Functions ==
=== Syntax  ===
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.
{| class="wikitable" border="1" width="700"
<span>
|-
<ul>
!
  <li>''MODE'': either ARROW, CROSS, HAND, MOVE, TEXT, WAIT</li>
! Description
</ul>
|-
</span>
| 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.
|}


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 ==
<span>
 
<ul>
{| class="wikitable" border="1" width="700"
  <li>''src'': the path to the image</li>
|-
  <li>''width'': the width hotspot of the cursor</li>
!
  <li>''height'': the height hotspot of the cursor</li>
! Description
</ul>
|-
</span>
|''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 ===

Navigation menu