Forum Discussion
EdSteeds
13 years agoCommunity Member
Update a variable with the current date and time
Is it possible to insert the date and time into a variable to be displayed on screen.
What I want to achieve:
To time an activity that takes place over a number of slides.
Happy to use Java...
MichaelHinze
12 years agoCommunity Member
Michael Hinze said:
Pam Lee said:
I have a question--where in Storyline do you place these codes? Do you create a separate variable for each line of code? Anyone have a screengrab of what it looks like?
You add a Excute Javascript trigger to an object, e.g. a button and then place the JavaScript inside the JavaScript window. See below a screenshot of a button that when clicked executes the date-related JavaScript listed in this thread. You can also place your code into an external file and call that function from the trigger.
Sorry, forgot to include this link to some samples and demos that may be helpful: http://www.articulate.com/support/storyline/javascript-best-practices-and-examples
Related Content
- 10 months ago
- 10 months ago
- 10 months ago