Hello,
I am working on getting the text from the search bar to disappear when you click in to the search box, then reappear then click out.
The current code is:
I have tried adding in some code to get the the word 'search' to disappear. After adding the code it worked, but lost use of the search box it self:
Hopefully you guys can help.
Many thanks
I am working on getting the text from the search bar to disappear when you click in to the search box, then reappear then click out.
The current code is:
Code:
<form name="simplesearch" method="get" action="<actinic:variable name="OnlineScriptURL" value="Search Script URL" />"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e"> <!-- Hidden field when in trial mode --> <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" /> </actinic:block> <input type="hidden" name="page" value="search" /> <input type="text" border="0" name="SS" size="10" value="SEARCH" onfocus="this.value='';" class="search-input" style="float:left; height:18px; border:none; border:0; font-size:10px;" /> <input type="image" style="height:21px;" src="GO-button.png" name="ACTION" /> <input type="hidden" name="PR" value="-1" /> <input type="hidden" name="TB" value="A" /> </form>
Code:
<input type="text" border="0" name="ss" size="10" value="SEARCH" onfocus="this.value='';" class="search-input" style="float:left; height:18px; border:none; border:0; font-size:10px;" onfocus="if (this.value=='SEARCH') this.value='';" onblur="if (this.value=='') this.value='SEARCH';"/>
Many thanks
Comment