Education/Projects/ProcessingForTheWeb/cursor: Difference between revisions

Jump to navigation Jump to search
Line 10: Line 10:


cursor(''MODE'') - this function sets the cursor to a predefined ''MODE'' defined by the function's parameter.
cursor(''MODE'') - this function sets the cursor to a predefined ''MODE'' defined by the function's parameter.
<div>
<span>
<ul>
<ul>
   <li>''MODE'': either ARROW, CROSS, HAND, MOVE, TEXT, WAIT</li>
   <li>''MODE'': either ARROW, CROSS, HAND, MOVE, TEXT, WAIT</li>
</ul>
</ul>
</div>
</span>
 
 


cursor(''src'',''width'',''height'') - this function sets the cursor to an image .  It is recommended to make the size of the image is 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.
<span>
<ul>
  <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>
</ul>
</span>


=== Bugs ===
=== Bugs ===

Navigation menu