![]() |
Type the word to search
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"> |
Just replace this:
<INPUT type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}"> with this: <INPUT type="text" name="posted_data[substring]" size="16" value="search our site..." /> |
Thanks balinor. Works great.
Its also working with 2 languages by using a language variable 8) |
Re: Type the word to search
seems logical, but on mine, the prefill text does not disappear when the search box is clicked
|
Re: Type the word to search
You need to use this:
<INPUT type="text" name="posted_data[substring]" size="16" value="search our site..." onFocus="this.value=''" /> |
All times are GMT -8. The time now is 01:23 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.