put search-box input inside form in Scribbled HTML

svn: r12137

original commit: 6be0f8f4dfdbd92cf3c057ffa1bcac9ef09e1aa6
This commit is contained in:
Matthew Flatt 2008-10-27 13:06:01 +00:00
parent 1096283709
commit b70318935e
2 changed files with 24 additions and 16 deletions

View File

@ -191,7 +191,7 @@
(define search-field (define search-field
@`p{Search: @(input ([type "text"] [id "search_box"] @`p{Search: @(input ([type "text"] [id "search_box"]
[onchange "delayed_search(this.value,event);"] [onchange "delayed_search(this.value,event);"]
[onkeyup "delayed_search(this.value,event);"]))}) [onkeyup "delayed_search(this.value,event);"])))})
) )
@ -199,7 +199,9 @@
(let ([sa string-append] (let ([sa string-append]
[emptylabel "...search manuals..."] [emptylabel "...search manuals..."]
[dimcolor "#888"]) [dimcolor "#888"])
`(input `(form
([class "searchform"])
(input
([class "searchbox"] ([class "searchbox"]
[style ,(sa "color: "dimcolor";")] [style ,(sa "color: "dimcolor";")]
[type "text"] [type "text"]
@ -213,7 +215,7 @@
[onblur ,(sa "if (this.value.match(/^ *$/)) {" [onblur ,(sa "if (this.value.match(/^ *$/)) {"
" this.style.color=\""dimcolor"\";" " this.style.color=\""dimcolor"\";"
" this.style.textAlign=\"center\";" " this.style.textAlign=\"center\";"
" this.value=\""emptylabel"\"; }")])))) " this.value=\""emptylabel"\"; }")])))))
(define search-box (make-search-box "../")) (define search-box (make-search-box "../"))
(define top-search-box (make-search-box "")) (define top-search-box (make-search-box ""))

View File

@ -101,6 +101,12 @@ table td {
color: #e0e0e0; color: #e0e0e0;
} }
.searchform {
display: inline;
margin: 0;
padding: 0;
}
.searchbox { .searchbox {
width: 16em; width: 16em;
margin: 0px; margin: 0px;