Skip to main content
Participating Frequently
July 21, 2017
Question

'Change State Of' On Rollover instead of On Click

  • July 21, 2017
  • 2 replies
  • 851 views

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

This topic has been closed for replies.

2 replies

Lilybiri
Legend
July 21, 2017

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.

Participating Frequently
July 24, 2017

Good point on devices, I appreciate the input - thank you!

Participating Frequently
July 21, 2017

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")})

Participating Frequently
July 24, 2017

thanks very much, appreciated!