Skip to main content
Jefferbob12055564
Inspiring
April 27, 2016
Question

Changing style color with an action?

  • April 27, 2016
  • 1 reply
  • 511 views

Can a color in a style be changed by an action or by JavaScript? Within a Captivate project - not after the project is published. Using Cap 9.01. Thanks.

This topic has been closed for replies.

1 reply

Lilybiri
Legend
April 27, 2016

Sorry, but I don't understand quite well what you want? It is this part ..."not after project is published"?

Both advanced actions and JavaScript are executed on runtime, which means after project is published.

I'll leave JS to someone else but for advanced actions: what do you want to change exactly? A style has so many factors, also depends on the object. One example: style for a shape button means the fill/stroke/text properties in all states.

Jefferbob12055564
Inspiring
April 27, 2016

Meaning change it within the project during development, not changing in the published HTML or style sheet. I know the results wouldn't be seen until previewed or published. For color, specifically the fill of a shape, but if that can be done, it should apply to most object style properties.

Lilybiri
Legend
April 27, 2016

Sorry, I still do not understand the question, hoping someone else does.