$('#spanContainingImage').hover(function () {
//$(this).css('cursor',"vertical-text");//this works
console.log('hover');//this is called
$(this).css('cursor', "url('http://localhost:12062/Content/themes/base/images/G.cur')");//this fails
});
I tried hard coding my URL, I still cannot get the cursor to change by URL. What’s wrong?
After some research MDN says:
So I added the
automodifier to my jQueryNow it works.
Note that it is also stated you have to stick to .CUR and .ANI to maintain IE6 compatibility (wish it listed IE7).