Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Are mouse events possible in Roll20?

1476639058

Edited 1476641867
Tomaxx
Sheet Author
Hi everyone! On my character sheet I have an picture on which I want to apply the following behavior, using 3 different image files: Normal: gray Onmouseover: light purple Onclick: dark purple Onmouseup: back to light purple Onmouseleave: back to gray. Normally this uses a script, which Roll20 doesn't like, so how can I do this, if it is at all possible? Also, I would like clicking on the image to start a roll. I saw somewhere that it's possible to do this with text, but is it possible to do this with an image? Thanks!
1476653200
Kryx
Pro
Sheet Author
API Scripter
You can use css and use hover and possibly active. That's it.
1476691357
Tomaxx
Sheet Author
Kryx said: You can use css and use hover and possibly active. That's it. Thanks for your reply Kryx. Yep I confirm hover works, didn't try active yet. Too bad, since mouse events seem to be a basic web functionality.