Nitesh is back to blogging.. Apologies for no updates since last 2 months..
TopBottom

Add a search form or widget on your blog

Posted by Nitesh Kothari on 16 August 2008
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Are you looking for a search box for your blog, where readers can search the content of the blog.


A) Search Form with text Area and Go button





Instructions:

Go to layout section and click on add a gadget. A Pop box will appear, select HTML/Javascript and paste the following code in content area.


<form id="searchThis" action="/search" style="display: inline;" method="get">
<input id="searchBox" name="q" type="text" value="Type here & press Go"> <input id="searchButton" value="Go" type="submit"></form>



B) Search Form with only text Area





Instructions:

Go to layout section and click on add a gadget. A Pop box will appear, select HTML/Javascript and paste the following code in content area.


<form action='/search' id='search' method='get'><input id='s' maxlength='50' name='q' onblur='if (this.value == "") {this.value = "search";}' onfocus='if (this.value == "search") {this.value = "";}' size='18' type='text' value='Type here and hit enter to search'/>& lt;/form>



So, did you like this post about search widget?
Have any questions..?? Comment here for more help..

Labels:

0 comments:

Post a Comment

Thank you for commenting at NiteshKothari.com. I follow "U comment I comment" movement. All the comment are dofollow. Please do not spam or leave meaningless or short comments. I expect you to leave me meaningful, relative and genuine comments. Thank you.