I know you weren't asking for this, Billy, but it is so simple to add the JS to clear the default text . . . . and really, it is SO MUCH more user friendly:
Just add a little line of JS to the onfocus element:
Code:
<form id="searchthis" action="/search" style="DISPLAY: inline" method="get">
<input name="q" size="25" id="search-box" value="Search" style="MARGIN: 0;
BORDER: #cccccc 1px solid; FONT-SIZE: 10px; COLOR: #444444"
onfocus="document.searchthis.q.value='';"/>
</form>
BTW, your type="text/" is invalid; need to remove the slash. Or, you could just skip that element as the text type is default.
I also simplified your CSS, as you don't need border-top, border-right, border-bottom & border-left if they are all the same; just use border. Similarly, you could just use margin: 0; if you want not margin all the way around.
|