use the tool as below convert to the base64 and quote the string as below:
tool:
http://www.abluestar.com/utilities/encode_base64/index.php
code:
window.content.document.body.style.cursor='url('+cursorname+'),auto';
Note:cursorname is the string you got from convet from image format