Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

custom cursor in captivate 2017

Explorer ,
Dec 18, 2017 Dec 18, 2017

I am using captivate 2017 to build an equipment simulation  for html5 export. I want the user to click on the stylus and have the cursor change to something that looks like stylus. I have been able to get this to work in Adobe Animate using

function fl_CustomMouseCursor_3() {
 this.mc_stylus.x = stage.mouseX;
 this.mc_stylus.y = stage.mouseY;
}

I am trying to get something like this to work in captivate. Anybody have any suggestions?

293
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Dec 18, 2017 Dec 18, 2017

You can execute this JavaScript, but you'll need an image to use and you'll need to figure out a place to put it and the path.

document.body.style.cursor = "url('callees/my-cursor.png')"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 18, 2017 Dec 18, 2017
LATEST

I can’t seem to get this to work. Even in just a straight html file. Is there a special way that you have to save the graphic. It is not throwing any errors just not displaying graphic?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources