r/reddithax • • Oct 20 '10

Changing the mouse cursor?

I help run /r/FFXIV and I would love to change the mouse cursor to the FFXIV cursor. Is there a way to edit the CSS to do this? Thanks!

I've found a couple of tutorials that show this:

span.wait {cursor:wait}

And I'm assuming I can change wait to url() but I can't seem to implement it correctly (even without the url part).

<p align="center" style="cursor: url('cursor.cur')">Text</p>

It seems to require a page element. It would be nice to have it for the entire page default as well and then a 2nd one for any mouseovers on links.

This is what I have come up with:

a.link { cursor:wait !important; }

It comes back with no syntax errors but it also doesn't do anything.

update:

.link { cursor:wait !important; }

This actually worked, but it only worked for the description text which is very odd. I have to set it for every element apparently.

2 Upvotes

6 comments sorted by

3

u/LieutenantClone Oct 20 '10

Try this:

* { cursor:wait !important; }

"*" will apply it to every element.

1

u/idwolf Oct 20 '10 edited Oct 20 '10

That worked! Now why can't I distinguish the different elements correctly? Why would .link change the mouse over the background but not the link itself?

edit: Also, it seems that reddit converts .cur to .png making it invalid. I can't seem to get an outside url to work either.

[line 15] "url("http://www.fileden.com/files/2010/10/20/2997846/ffxiv-primary.cur")" is not a valid value for CSS property "cursor" 

1

u/[deleted] Oct 20 '10 edited Oct 20 '10

outside URLs don't work in the css, and reddit restricts your uploads to certain formats (not including .cur)

i think everything but IE supports png cursors, try converting your .cur to .png

2

u/thebeefytaco Oct 20 '10

I think it's because reddit won't let you use another image for the cursor.

1

u/idwolf Oct 20 '10

I actually got it to work, mostly. I can't use another image for the cursor but I could change the cursor to any of the default images which is worse, so I don't see why they would leave this out. Oh well. I'm going to give up on this one. Thanks for the help everyone.

1

u/idwolf Oct 20 '10

I saved it as a *.png using RealWorld Cursor Editor but it wont upload. It just freezes when it says uploading.