i'm trying to make a bookmarklet to change the cursor of anypage i visit.
I do this :
<a href="javascript:var i,s,ss=['http://www.zombiepanic.info/wp-content/themes/MYgRID/js/tronc.js','http://code.jquery.com/jquery-1.7.2.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0);"> Go! </a>
and my js file is :
(function() {
function getCssTransform() {
$('body').css('cursor','crosshair');
}
getCssTransform();
})();
It's work perfectly in a empty.html page i made, but when i wan't to use in google or facebook or an other site, the script is injected but my cursor doesn't change…
Any ideas ?
(Ps : Sorry for the english, i'm french)
EDIT :
(function ($) {
$(document).ready(function() {
document.body.style.cursor="crosshair";
});
})(jQuery);
I try this, but it's the same issue.