Forum Discussion
Does anyone know of a way to change the "next" button to an "end" button at the end of a story?
You can actually change this text by using the following JavaScript. All you would need to do is assign a trigger, execute JavaScript when the timeline ends. Replace "REPLACE-ME" with your own text. I can validate that it works in SL3.
NEXT BUTTON
var button_next = $('.slide-control-button-next .text').text()
$('.slide-control-button-next .text').text("REPLACE-ME")
$('.slide-control-button-next').click(function(){
$('.slide-control-button-next .text').text(button_next)
})
PREVIOUS BUTTON
var button_prev = $('.slide-control-button-previous .text').text()
$('.slide-control-button-previous .text').text("REPLACE-ME")
$('.slide-control-button-previous').click(function(){
$('.slide-control-button-previous .text').text(button_prev)
})
- AndrewRomanyk8 years agoCommunity Member
Wow, this is awesome Bryan. Thanks for sharing!
- SaymaraRamos8 years agoCommunity Member
Thank you so much Bryan! It was very helpful!
- MultiversityDev6 years agoCommunity Member
Can you help me to do this for Storyline 360. I want to change color of next button when timeline ends. I'm using storyline 360 modern player. Please help me.
- LaurenDuvall6 years agoStaff
Hi!
I'm not sure Bryan is still subscribed to this discussion. To contact him directly, you'll want to use the "Contact Me" button in his ELH profile!
- MultiversityDev6 years agoCommunity Member
I don't want to replace text. I want to change color of button. What I do? What is the script for that?
- MultiversityDev6 years agoCommunity Member
Finally, It's solved. When slide timeline ends, next button color will change.
I have done this for storyline 360 using javaScript.
- BryanMendelson-6 years agoCommunity Member
Would you like to share what you did to resolve?
- AlexanderDekker5 years agoCommunity Member
That sounds like what we need exactly. However, your example does not work in my copy of Storyline 3. Perhaps something has changed in the implementation. Could someone verify?