Variable Help: Show/Hide Caption Text
March 23, 2007 12:00 AM
@Ben Pitman] The main difficulty here is implementation. Since you have a different text block on each page, normally you would have to have different code on each page - a different button. Too much work.Hopefully all your voice over text is in the same location on each page. 1. Cover it with a solid white (not clear) text box at the title level. Now you can use title level actions to affect show or hide it. When you hide the white box the text appears. Now you can have different text on each page below the white text box.2. Use your buttons or hide / show the white text box. I use a dropdown list box with two values: Show Text and Hide Text. The On Select/Change tab runs an action group. The action group has two actions in it. If the drop down list variable = Show Text, hide the white text box. If the variable = Hide Text, show the text box. 3. One more action at title level: On Show Run the action group.[/QUOTE wrote:
I implemented this code, and it's generally working as expected, but I am having a few issues with it.a) The area on the interface where I am displaying the narration text is not white, so the box I am using to cover the text area is set to use the custom color of the inteface background, and it becomes slightly visible when I publish to HTML [it is completely invisible in Lectora itself]. I am pretty sure this is a dithering issue, so I may be able to change the interface color to one that doesn't dither when exported.b) this one is more of an issue; when I publish the title to HTML, whenever I enter a page with the text block, it is momentarily visible before it is obscured by the box. I'm having trouble figuring out a way around this issue. Any suggestions?Mark
Discussions have been disabled for this post