Forum Discussion
Adjusting colors and images using variables
Hey Douglas,
As far as modifying elements through the DOM using Javascript, Storyline makes it a bit of a pain. Math Notermans came up with a pretty ingenious solution for identifying elements using accessibility labels. Using this method I managed to get it sort of working...
Slide view:
Javascript that runs on timeline start:
Published view:
I don't know your situation, but generally this kind of stuff is easier to achieve and maintain using master slides and/or theme colours.
Ben,
This is very helpful. You are correct, I would like to do this via master slides and theme colors. Doing so will allow me to quickly change all colors at once and change the image in one spot. It would not be practical to execute javascript on every page to change the colors and images to match brand color scheme. Does the method you outlined work to update the color theme and images on the master slide so that the script only has to be executed once?
Related Content
- 11 months ago
- 2 months ago
- 11 months ago
- 11 months ago