The X-Cart searchbox is usually empty. It would be nice if there was a pre defined text in it like: type here to search. When the customer clicks on this white box with text the text will disappear and they will be able to enter their search term.
Does anybody knows how to do this?
Here is the code of the search box:
Code:
<TABLE border="0" cellpadding="0" cellspacing="0">
<FORM method="POST" action="search.php" name="productsearchform">
<INPUT type="hidden" name="simple_search" value="Y">
<INPUT type="hidden" name="mode" value="search">
<INPUT type="hidden" name="posted_data[by_title]" value="Y">
<INPUT type="hidden" name="posted_data[by_shortdescr]" value="Y">
<INPUT type="hidden" name="posted_data[by_fulldescr]" value="Y">
<TR>
<TD valign="middle">
<INPUT type="text" name="posted_data[substring]" size="16"
value="{$search_prefilled.substring|escape}">
</TD>
</TR>
</FORM>
</TABLE>
</td>
<td>
<A href="javascript:
document.productsearchform.submit()">