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;
}
Change the cursor in JavaScript

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.