[pmwiki-users] searchbox that clears
design at softflow.co.uk
Mon Apr 9 02:31:38 CDT 2012
Monday, April 9, 2012, 1:58:24 AM, you wrote:
> i want to make a searchbox that says "search" in the field, but
> that then automatically clears when it's clicked upon. i only want
> this for the searchbox on some pages, not all.
> is there away to make this happen with (:searchbox:)? or with
> regular (:input:)'s? i can't figure it out.
FixFlow and Gemini skins use such a searchbox.
It is implemented via a modified SearchBox function and modified
markup for (:searchbox:).
It is in its own php script searchbox2.php, which you find in the
skins zip file. Just copy that file and include it for the Groups or
Pages you need it.
It uses onfocus and onblur events.
You should see it working on pmwiki.org on the Fixflow and Gemini
More information about the pmwiki-users