Any way to reference objects (ie: images) in Javascript?
Nov 27, 2017
By
LJ Beaupre
Hey guys,
I think I just read every tangentially-related post on this subject for the last five years... I did find someone asking the same question from two years ago, and I know it wasn't possible then, but I was wondering if anyone knows whether the situation has changed?
I'm trying to control the size of an image in a way that Storyline triggers and variables don't support, but JS can.... if only I could reference my image!!
Thanks
(Let me save Staff the trouble: yes, I'm aware that staff don't officially support Javascript, and yes I've read the articles about Javascript on this website ; ) )
7 Replies
It might be possible. A few quick questions:
1) Which version of StoryLine are you using? and
2) Are you publishing to HTML5 or to Flash?
Hi Owen,
Wow, fast response! I should have mentioned, but I'm using SL360.
I currently publish in HTML5 but only because it's the default- I have the option of doing either.
Thanks
This post was removed by the author
I just started a new job and haven't loaded SL back on to it, but I think in theory, you should be able to do this.
How familiar are you withthe developer window in your browser?
I'd say "somewhat"... I don't have bottom-up knowledge of any scripting language, actually, but I've gotten used to reverse engineering things from site code, etc. Not the best method but the most efficient when you're doing rapid e-learning and don't have time to sit down and take a course!
While these do not address your specific issue, you might find some inspiration from the following posts that all use the browser's developer window to identify SL elements and then make changes. Once I load StoryLine again, I'll try to find a direct solution for you but this might be enough to get you started.
Link 1: Changing CSS on the fly
Link 2 : Adding a Logo & a Print Button
Thanks so much!!
I admit, I'm a bit stumped. I can isolate an image contained in the player - but I haven't been able to manipulate it's properties. :-(
This discussion is closed. You can start a new discussion or contact Articulate Support.