Forum Discussion

PeterNeelmeyer's avatar
PeterNeelmeyer
Community Member
26 days ago

Quick Tips & Tricks: Episode 110 – Persistent Panel on Storyline Player

Hi Community,

in Quick Tips & Tricks: Episode 110 Tom Kuhlmann is showing a "lightbox" that is triggered by a boolean (true/false variable) 

and controlled by a “Persistent Panel on Storyline Player” - in this case the customer did not want a native lightbox that is shown over the entire player.

I think there is a much simpler way without any further slides:

1. create a true/false variable, e.g. “LB”.
2. create a layer on the slide master, e.g. “Lightbox”
3. create the desired content and a “close” button on this layer
4. create two triggers in the layer:

a.    If the variable “LB” changes, show this layer.
b.    When the user clicks on “close”, hide this layer.

Now switch to the player view and add a tab like Tom, e.g. “Legend”.
However, select “Execute Javascript” as the action:

setVar('LB', !getVar('LB')); // “!” sets the boolean to its opposite value (true or false)

That's it.
The “Lightbox” layer is displayed on each slide when the “LB” variable changes - in this case when the user clicks on “Legend”.
It is hidden via “close” or by switching slides.

This can also be used by hyperlinks (switching variables) to show up tooltips (layers) defined for all slides.

Best wishes
Peter



2 Replies

  • Thanks for sharing this tip and resources. In the quick tip sessions we usually stay away from JS but for those who are comfortable with it, this will be a good tip. I'll add a link to what you shared to the QT page for those interested.