Forum Discussion
Show an image or object with javascript
Hello!
I currently have a trigger that runs a javascript function that I am bringing over from HTML.
At the end of the function (shown below), I am trying to show a workspace/object. I'm not as familiar with pure javascript, is there a good way to show something in a DIV? Is there some other way to call the DIV to get it to show up?
- WaltHamiltonSuper Hero
Without seeing your project, the simplest method is to create two triggers; one to run the JS, and the next to show the object. If you can, change its state from Hidden to Normal, but if you can't do that, build a shape to cover it, and have the second trigger change the cover to Hidden.
- DavidSmith-1b8dCommunity Member
Sorry I wasn't clear. I am creating a workspace (which I referred to as an object) and I want that shown. I'm not sure how storyline handles DIV , since it doesn't show the workspace. It's not an object in articulate.
- Jürgen_Schoene_Community Member
if you want to embed external webpages into storyline, you can use web objects (= iframes)
https://community.articulate.com/articles/storyline-360-adding-web-objects