Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

'Change State Of' On Rollover instead of On Click

Explorer ,
Jul 21, 2017 Jul 21, 2017

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

742
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 21, 2017 Jul 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")})

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2017 Jul 24, 2017

thanks very much, appreciated!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 21, 2017 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2017 Jul 24, 2017
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources