[pmwiki-users] Searchbox: Highlight Text on Enter/Click
Petko Yotov
5ko at 5ko.fr
Sat Mar 27 09:32:28 CDT 2010
On Saturday 27 March 2010 15:11:48, Petko Yotov wrote :
> If you really don't want to use JavaScript, you could use CSS, and define a
> background image for the searchbox text field.
>
> 1. Create a small picture file containing the word "Search"
...
Unfortunately I now see that this approach is not perfect. If a visitor types
something in the search box, then clicks out of it, or moves away with Tab,
the background picture reappears under the typed text. In most cases, the
visitor will simply press Enter or click on the Search button, so this
wouldn't be a problem, but if (s)he doesn't, the serch box may look weird.
Petko
More information about the pmwiki-users
mailing list