To enable blog readers to search inside the blog:
<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 == "Type Something") {this.value = ""}" onblur="if (this.value == "") {this.value = "Type Something";}" 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>
- layout > "Add a Gadget"
- add "search box"
- paste the following codes into the HTML/Java Script gadget configuration:
<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 == "Type Something") {this.value = ""}" onblur="if (this.value == "") {this.value = "Type Something";}" 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 意見:
張貼留言