I need to change the default image for the cursor: a pointer with some custom image.
I misunderstood this, but after reading this comment , everything was clearer.
You can do this easily using jQuery / JavaScript. Firstly, here is a slightly simpler version of jQuery:
$("*").each(function() { var cur = $(this); if(cur.css("cursor") == "pointer") { cur.css("cursor", "url(newcursor.ico)"); } });
Pure version of JavaScript:
var elms = document.getElementsByTagName("*"); var n = elms.length; for(var i = 0; i < n; i ++) { if(window.getComputedStyle(elms[i]).cursor == "pointer") { elms[i].style.cursor = "url(newcursor.ico)"; } }
Chris source share