Forum Discussion
Create a Timer for Storyline Any Version
Thanks for the sample Nancy.
I'm just starting to dabble with javascript. Right now, when I work with it, the timer continues where it left off on the previous slide even though I have javascript included on each slide.
Do you know how to alter the code so that it restarts at "10" on each slide?
I appreciate your help.
Thanks again,
PL
- NancyWoinoski6 years agoSuper Hero
Hi PL, for each slide that has the timer you have to reset the hour, minutes, and second variables in Storyline back to 0, 0, and 10 respectively when the timeline starts.
- KennethgGoeiema6 years agoCommunity Member
Nancy, you are a life saver!
Just one thing I would like to find out. I am using the .js your shared and it worked great. But I have 3 quizzes and would like to know how you reset the time. Cause it just continues counting down from the previous .js
- NancyWoinoski6 years agoSuper Hero
you have to reset the Storyline variables for hours, minutes and seconds variable back to 00, 0 and 10 at the start of each quiz question. Make sure they are above the Javascript code in the triggers panel.