Forum Discussion
Changing the color of the StoryLine player DYNAMICALLY with JavaScript
I know this is an old thread, but was wondering if there is a reason why this can be done just by using JavaScript. In other words, changing the colours using Javascript by itself. Instead of changing the link to the CSS file using Javascript?
- OwenHolt3 years agoSuper Hero
The reason for this approach is to make it easy for non programmers to change multiple styles within the player by using Storyline to create multiple style sheets. You could just use JavaScript for sure. This is just an alternative method that simplifies the coding.
Also, this is old enough that all of the jquery coding is no longer valid. All references to jquery style coding would need to use a standard JavaScript alternative to accomplish the step.- JohnBowyer-Smyt3 years agoCommunity Member
Thanks Owen. I haven't tried styling the player with JS only and wasn't sure if using JS alone was a bad idea or not. I think the advantage might be that you don't have to worry about files being overwritten every time you publish, since the JS code is located within Storyline
- OwenHolt3 years agoSuper Hero
- John B
- OWEN HOLT
Thanks Owen. I haven't tried styling the player with JS only and wasn't sure if using JS alone was a bad idea or not. I think the advantage might be that you don't have to worry about files being overwritten every time you publish, since the JS code is located within Storyline
There are several work arounds to this I've used since. Using an orphaned webobject to create a sort of "assets briefcase" and using a hidden "resources" tab. Either one works and will preserve your files no matter how many times you publish.