Are you wanting this to happen inside the topic itself or from the main toolbar? If it's from the main toolbar, use a text link instead of a button.
Helpful and Handy Links
Yeah, just from inside the topic itself if possible.
Hi Peter, I've used the toolbar solution many times, but what I'm after is a script I can call from a simple text link in the HTML of my page, rather than from the toolbar itself. Is this possible?
I understood what you wanted. What I was saying is that if you haven't found that and would accept a toolbar method, there is one available.
I am curious as to why you want to give yourself the work of putting this in every topic rather than just creating one toolbar button that works for all topics.
See www.grainge.org for RoboHelp and Authoring tips
I want to use it in the header of one of my Master Pages, so it will only be created/maintained once. Not all my pages have drop downs in so rather than have a toolbar button available for every page, I was trying to be a bit cuter by having two Master Pages - one for normal pages and one for pages with drop downs in.
Just a thought, perhaps it helps: I dynamically add the show all/hide all button with a modified ehlpdhtm.js file. The only dhtml effects I use are dropdowns, so whenever that file is used on a page, there are dropdowns.
When the page loads, the scripts looks for a unique place (I use the breadcrumbs) and adds the show all/hide all button to the page. All dynamic, so you don't need multiple masterpages.
For the show/hide script, you can simply use one of the show hide scripts from Peter's site.
This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.