5.1.12

box search inside the blog

02:26 | , ,

To enable blog readers to search inside the blog:



  1. layout > "Add a Gadget"
  2. add "search box"
  3. paste the following codes into the HTML/Java Script gadget configuration:



<div class="searchform">
<form method="get" id="searchform" action="/search">
<table width="100%">
<tr>
<td><input type="text" style="width:98%;padding:2px;" value="Type Something" onfocus="if (this.value == &quot;Type Something&quot;) {this.value = &quot;&quot;}" onblur="if (this.value == &quot;&quot;) {this.value = &quot;Type Something&quot;;}" name="q" id="sbox" class="sbox" /></td>
<td width="75px"><input type="button" value="Click To Search" id="sbutton" class="sbutton" alt="" /></td>
</tr>
</table>
</form>
</div>


Type Something and Click To Search can be changed as your wishing keywords .

0 意見: