> pictools > doc > searchbox
> pictools > doc > searchbox
Pictools: Physpics Page Pieces
V3.3 (445)
The searchbox shown in the upper left in dirbar.php
usage, in PHP code: $sp->inclood("/library/searchbox.php");

The search box is displayed as part of dirbar.php in the upper right on most Physpics pages. Initially gray, but comes alive when it is clicked to get focus. The appearance is managed by evemt handlers for onblur/onfocus that call scripts.js.searchblur/searchfocus. When the arrow is clicked or return is typed, Google is invoked with a query liike this:


where the domains and sitesearch values are from php's $_SERVER['SERVER_NAME'];

The search response is a google page and it replaces the current browser tab.

Copyright © 2023 ZweiBieren, All rights reserved. Feb 5, 2023 17:05 GMT Page maintained by ZweiBieren