Mouseout trigger needed for xAPI
I need to get xAPI statements which contain data on how long a user has interacted with a particular element within a slide.
I have an instructions slide which describes elements on an application page. So there are hot-spots or in my case, rectangles which, when hovered over, change the state of text box. This then acts like a tooltip on a website. (See attached for a screenshot of what this looks like).
I want to record if a user has accessed this tooltip but also how long for because just getting data on when a user hovers over an element does not provide useful information (as they may do so accidentally for a small fraction of time for example).
The obstacles I'm facing are:
1. The built-in elapsed time variables are limited to project, scene and slide level.
2. There is no mouse-out (or similar) trigger which would enable me to use a Javascript interval counter to trigger on mouseover and trigger on mouseout to record a length of time the user may have been reading a particular element.
I would be grateful for help on creating a robust solution for this. I really believe that the value for xAPI for our organisation is in getting a detailed picture of how users are interacting with content so we can improve our materials based on this and make predictions based on user behaviour.
Many thanks