[pmwiki-users] new recipe ShowHide
pmwiki
pmwiki at ben-amotz.com
Thu Mar 2 07:15:20 CST 2006
Hans wrote:
> I just released the cookbook script showhide.php
> http://pmwiki.org/wiki/Cookbook/ShowHide
>
> This adds markup to create toggle buttons which can show/hide page
> sections (divs) instantly, using javascript code.
>
> The markup (:showhide div=divname:) will create a button which
> when clicked will hide the div named divname, and subsequently
> toggle to show it etc. Multiple buttons for multiple sections are allowed.
> The initial state of the section (hidden or shown) can be set (default
> is show).
> The label of the button for hidden and shown state of div can also be
> set (defaults are Show and Hide).
> The markup places javascript into the html header, which will generate
> subsequent toggle states instantly (no page reloads).
>
> Pm, perhaps the script can be enabled for the Cookbook/ShowHide page,
> so a sandbox to show it working can be created?
>
>
Great job! Thank you Hans.
I just tested this out with several different skins* and the results
were consistent on all skins except for Sinorca, which added much more
vertical space.
Pico
*The skins I tested were:
beeblebrox
fixflow
gemini
grease
jhmp
notsosimple
pmwiki
recurve
sinorca
More information about the pmwiki-users
mailing list