THATS ZOMBIE-LIEVABLE!'s profile picture

Published by

published

Category: Layouts

cursor stuff

how would i go about making it so that my little custom mouse cursor , changes to another cursor/icon, when hovering over a clickable, link, profile, etc - signifying you can click there 

ive actually tried some thingsbut they DONT WORK and im had to stop and take abreak because i was going crazy, anyways . How Me Do?!

Kudos: 4

Comments

(edited) Report

a {
  cursor: url("/path/cursor.cur"), pointer
}

«pointer» in this case is required in the syntax and will tell the browser to use the default pointer if it can't use the custom one. Note that browsers do not support animated cursors (.ani or .gif) but .png and .cur are okay. :) Some custom cursors' click points will be "off" and won't point to elements correctly. In that case you can fix the misalignment with CSS like this:

a {
  cursor: url("/path/cursor.cur") 0 0, pointer
}

Where the numbers will tell the browser where the click point (formally called a «hotspot») of the cursor is. In this case, 0 0 is the top left corner (because cursors usually face the top left corner). The values are in pixels and larger values will offset the hotspot from that top left corner.

I also like to select «button» elements alongside «a» because there are a lot of buttons on FriendRewind profiles that call for the pointer cursor. There are other elements that need more specific selectors; you can inspect my profile to see how I did it. Let me know if you still have doubts!



YESS this worked after slamming some stuff around and i found a thread elsewhere about a simple cursor swap, and now its working decently, 

  not sure how to get it to change when over these two but i will keep fiddling around with things

super thankyu

by THATS ZOMBIE-LIEVABLE!; (edited); Report

Report

Hm, not sure..... I don't really know how to code either but you can contact @Def3ct and hopefully he could assist you on that.



but thats scary thats like head honcho dude what if they stab me and mount me to the friendrewind wall

by THATS ZOMBIE-LIEVABLE!; ; Report

That's hilarious. LOL XD

But he is actually a pretty chill guy.

by Cysper04; ; Report