在自己的网站上建立一个搜索框,不用打开Google网址或者其它带搜索的网站,从自己的网站就可以直接利用Google搜索,搜索各类信息。代码如下:
lt;!--
<
form
method
=
"
get
"
action
=
"
http://www.google.com/search
"
>
<
div
style
=
"
background-color:white
"
>
<
a
href
=
"
http://www.google.com/intl/zh-CN/
"
>
<
img
src
=
"
http://www.google.com/logos/Logo_40wht.gif
"
border
=
"
0
"
alt
=
"
Google
"
/>
</
a
>
<
input
type
=
"
text
"
name
=
"
q
"
size
=
"
31
"
maxlength
=
"
255
"
value
=
"
"
/>
<
input
type
=
"
hidden
"
name
=
"
ie
"
value
=
"
GB2312
"
/>
<
input
type
=
"
hidden
"
name
=
"
oe
"
value
=
"
GB2312
"
/>
<
input
type
=
"
hidden
"
name
=
"
hl
"
value
=
"
zh-CN
"
/>
<
input
type
=
"
submit
"
name
=
"
btnG
"
value
=
"
Google Search
"
/>
</
div
>
</
form
>