Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Adding events to plugin div


I have added a customized div in the jw-overlays element while building a plugin. I have a div with an "i" in it styled to look like an arrow. I need to be able to assign event functions for mouseover, click and blur. Has anyone been able to accomplish this with JS or Jquery?

3 Community Answers

Todd

JW Player Support Agent  
0 rated :

I am not sure I understand what you are trying to do and where you are running into an error. Can you please provide a link to a test page with reproduction steps?

a...

User  
0 rated :

What I did to get this working is within the code file for my plugin I added the html to the div.innerHTML for my button with the corresponding functions for the events. For example, onmouseout="buttonHover()", onmouseover="bbHoverOut", etc. THen added the functions to my HTML page in the script for when they'll be called.

Todd

JW Player Support Agent  
0 rated :

Glad to hear you got it working. Thank you for posting your solution here!

This question has received the maximum number of answers.