⌘Millet苹果屋⌘

Experience is the father of wisdom and memory the mother.

为Blog添加搜索

呵呵,答应sky上一位朋友要写一个关于Blog Search的东西,结果……不好意思,险些把这个事儿给忘了,该打该打
代码如下:
<form ACTION="http://blogsearch.google.com" METHOD="GET">
<table border="0" cellspacing="0" cellpadding="2" bgcolor="white" id="smallsearch" class="search" style="width:auto; ">
  <tr valign="top" align="left">
    <th width=325><div id="flabl" style="display:none;align=left;">Find</div> </th>
    <td><input type="text" name="q" id="q" size="25" maxlength="256" title="Search" tabindex="1"></td>
    <td ><input type="submit" id="btnG" name="btnG" value="Search My Blog" tabindex="2" target="_blank"></td>
  <input type=hidden id="hl" name="hl" value="en">
  <input type=hidden name="bl_fpy" value="t" />
  <input type=hidden name="bl_name" value="http://my.opera.com/Millet/" />
  <input type=hidden name="ie" value="UTF-8" />
  <input type=hidden name="ui" value="blg" /></tr>
</table>
</form>
将value="http://my.opera.com/Millet/"替换成自己的blog地址就成了。
value="Search My Blog"是显示在按钮上的文字,可以根据自己的需要修改。
显示效果:
<form ACTION="http://blogsearch.google.com" METHOD="GET"> <input type=hidden id="hl" name="hl" value="en"> <input type=hidden name="bl_fpy" value="t" /> <input type=hidden name="bl_name" value="http://my.opera.com/Millet/" /> <input type=hidden name="ie" value="UTF-8" /> <input type=hidden name="ui" value="blg" /> </form>

历年主机售价HALO2 OST Vol.2

Comments

Allan.Cylakes Thursday, May 18, 2006 9:18:35 AM

太感谢你了~^^

Write a comment

New comments have been disabled for this post.

June 2012
S M T W T F S
May 2012July 2012
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30