[pmwiki-users] new recipe ShowHide

Hans design at softflow.co.uk
Thu Mar 2 05:04:30 CST 2006


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?

-- 
Best regards,
 Hans                          





More information about the pmwiki-users mailing list