Commit 6d465889 authored by Timothy Stack's avatar Timothy Stack

Tweak the search box look/behavior

parent 4d0deffe
......@@ -268,6 +268,7 @@ function WRITESIDEBAR() {
echo "<FORM method=get ACTION=$TBDOCBASE/search.php3>\n";
?>
<script type='text/javascript' language='javascript' src='textbox.js'></script>
<table class="menu" width=210 cellpadding="0" cellspacing="0">
<tr><td class="menuheader"><b>Information</b></td></tr>
<?php
......@@ -321,7 +322,10 @@ function WRITESIDEBAR() {
# The actual search box. Form starts above ...
echo "<tr><td class=menuoptst>
<input name=query value='Search String' size=16/>".
<input class='textInputEmpty' name=query
value='Search String'
size=16 onfocus='focus_text(this, \"Search String\")'
onblur='blur_text(this, \"Search String\")' />".
"<input type=submit style='font-size:10px;' value=Search /><br>".
"</td></tr>\n";
WRITESIDEBARDIVIDER();
......
......@@ -164,3 +164,10 @@ a2 { padding: 4px; }
a2:hover { background-color: #E7E7F0; border: solid 1px #007; text-decoration: none; padding: 3px;}
span.topbaroption { background-color:#E1E1EA; }
.textInput {
color: #000000
}
.textInputEmpty {
color: #888888
}
function focus_text(textInput, defval) {
if (textInput.value == defval) {
textInput.value = "";
textInput.className = "textInput";
}
}
function blur_text(textInput, defval) {
// Strip whitespace.
var sval = textInput.value.replace(/(\s+)/ig, "");
if (sval == "") {
textInput.value = defval;
textInput.className = "textInputEmpty";
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment