Change cursor

how do you make a script that changes what the cursor looks like?

cursor("default");
cursor("none");
cursor("arrow");
cursor("cross");

these change cursor but the second one makes your cursor dissapear

but where do i put it?

run javascript function[script]

Well this could be done with some javascript and css.

cursor: pointer;

you will need to find some code to change the css with some javascript. and use the javascript block

1 Like
document.head.innerHTML+=`<style>body{cursor:pointer}</style>`
2 Likes

please show a picture of the script in snap please, i still dont understand

untitled script pic
It works!

document.head.innerHTML+=`<style>body{cursor:pointer}</style>`
1 Like

thanks

Thanks to you! You gave me an idea for my SnapV!

lil thing i made with it:
untitled script pic
the cursor type thing is a drop down menu with options default, pointer and none

1 Like

Same, I'm going to make a drop down of options

SnapV script pic

@biran4454 has a project with cool JavaScript blocks, and one of them changes the cursor.
https://forum.snap.berkeley.edu/t/useful-js-functions/362

1 Like

No.The default of cursor type should be either hand or pointer.

SnapV script pic (1)

default is a valid option for the cursor type, and it sets the cursor to the browser's default cursor.

ok so it means pointer