Adding a Print Button to the Player and other SL3 / 360 Player Hacks
Similar to my post about adding a logo to the player, you can add a print button directly to the player too! Here is how:
- Be sure the Volume Control has been selected in the Player Properties Window. (You can hide this later if you want to, but for now you will need it to use as a location target.)
//First we are going to create and add a Print Button to the webpage
//Create a new input element and set its attributes
var printButton = document.createElement('input');
printButton.setAttribute('value', 'Print Page');
//Add your button to the page
//This next part uses a bit of JQuery to find the volume control in the StoryLine player and then move the button you just created to be right after it.
//Format the button with the same style as other player buttons.
//If you want to hide the volume control, add the following line.
The StoryLine file I'm including demonstrates adding a Logo, adding a Print button, hiding various player elements, and showing elements that you've previously hidden.