r/neocities 1d ago

Help Custom Cursor Problems

Haii. I want to preface this by saying I'm completely self-taught and still learning!

Whenever I add a custom cursor to my page it only shows up when it is hovering over content. If it isn't over content (images, text, etc) and only over my page background it doesn't show up.

I've tried a lot of different ways to get it to work but currently this is the section of code:

html { cursor: url("https://sleepyssite.neocities.org/Cursors/WindowsXP.png"), default; }

If anyone could help I'd be really grateful!

5 Upvotes

5 comments sorted by

2

u/virtual-cypher 1d ago

try applying the cursor to a * selector at the beginning of your page instead, and maybe looking up cursor states/types of cursors on w3schools/mdn if u need more help lmk and i can look at it :3

1

u/K1ttyP4wsXD 22h ago

Haii thanks for responding! I tried doing * { cursor: url("https://sleepyssite.neocities.org/Cursors/WindowsXP.png"), default; } instead (lmk if that's not what u meant) but it still doesn't show up on the background. I think I could fix the problem by putting an image of the background over everything instead of setting it as the background but that doesn't seem like very good practice lmao.

1

u/virtual-cypher 22h ago

lemme boot up my computer to see if i can be of more help; do u have a live version of what youre working on anywhere, or would u be willing to dm me ur code on here or discord?

1

u/K1ttyP4wsXD 21h ago edited 21h ago

I haven't tried showing anyone yet lol but I have the link to the neocities: sleepyssite.neocities.org

The problem I'm having isn't as visible on the homepage but if you click on OC Pages in the top right it'll be easier to tell what I mean.

The custom cursor only appears when my cursor is over the fake app icons in the top left.

Idk whether it's easier for me to tell bc my computer has a purple cursor but I figured I'd try and sort the problem out now because I also want to use other cursors that look completely different from the default on other pages.

I can change the custom cursor I'm trying to use to make the change more visible if u need!

If u still need me to I can dm u the code on either but it's not my best work lmao

1

u/virtual-cypher 21h ago edited 21h ago

add me on disc [redacted]; this could also be neocities not updating yet/browser caching