Change the cursor in JavaScript

 

Just a simple JavaScript function to change the cursor

/**
 * Posible options
 * 
 * auto
 * crosshair
 * default
 * pointer (hand)
 * help
 * move
 * text
 * wait
 * e-resize, w-resize, n-resize, s-resize, ne-resize, nw-resize, se-resize, sw-resize
 * 
 * onmouseover="changeCursor('crosshair');"
 */
function changeCursor(style)
{
    document.body.style.cursor=style;
}