Custom cursor for a single scene?

knowledgebase

(Marin PETTE) #1

Hello, I am a new user French . I would like to apply a cursor style on one of the scenes of my project.
I find this code on the forum, but it applies the cursor to all scenes.

MarkHunteOct '15 1
You could just place something like this in your head.

	<style>
.HYPE_element, .HYPE_scene{
 cursor: url(http://bringerp.free.fr/Files/RotMG/cursor.gif), auto !im
portant;
}
 </style>

How do we call a particular scene?

ps : Sorry for my english.


(Mark Hunte) #2

You can use Javascript instead.

Run this code on scene load of the scene you want the cursor for.

element.style.cursor =  "url('http://bringerp.free.fr/Files/RotMG/cursor.gif'), auto";

Because you run it from scene load, the element will be the scene.

customCursorForScene.hypetemplate.zip (22.3 KB)


(Marin PETTE) #3

Thank you, it works!