Copy link to clipboard
Copied
I'm using the Change State Of action on a button to swap an image state - an image changes states when that associated button is clicked. I would like the image to swap when user ROLLS OVER the button, rather than when user CLICKS the button - - possible? if so, how? thank you
Copy link to clipboard
Copied
not something inherent in Captivate, but it is doable using javascript:
add to the slide "on enter, execute javascript"
$("#" + rollover_object_id).on("mouseover", function(){cp.changeState("state_object_id","over_state")})
$("#" + rollover_object_id).on("mouseleave", function(){cp.changeState("state_object_id","non_over_state")})
Copy link to clipboard
Copied
thanks very much, appreciated!
Copy link to clipboard
Copied
Rollover is not an event,to trigger an action, except when you use the rollover area of a rollover slidelet. Since rollovers are not supported for HTML5 output, I don't expect this to change soon (will not be functional for mobile devices at all).
Except with JS, you can create rollover evets if you use the CpExtra widget (only for HTML5) by InfoSemantics. They have also an eventhandler widget, only for SWF output.
Copy link to clipboard
Copied
Good point on devices, I appreciate the input - thank you!