Pages

Tuesday, March 22, 2011

SEARCH BAR FOR BLOG

CODE FOR SEARCH BAR


<form id="searchThis" action="/search" style="display:inline;" method="get">
<input id="searchBox" name="q" size="20" type="text" value="Search This Blog...." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/> <input id="searchButton" value="Search" type="submit"/>
</form>

 THIS IS A WORKING EXAMPLE

go to the design
add a gadget
html/javascript
copy the code in the gadget
adjust width


No comments:

Post a Comment