在网页中加入百度搜索框-

来源:百度知道 编辑:UC知道 时间:2024/05/21 13:01:24
baidu搜索框写法:--这是在百度搜索所有关键词的,如何搜索特定网址?

<form action=http://www.baidu.com/baidu target=_blank>
<td height=38 colspan="2" align=middle valign=center bgcolor="#FFFFFF"><div align=center><font style="FONT-SIZE: 12px">
<input id=word2 name=word size="20" value="请输入关键字" onmouseover="this.focus()" onblur="if (value ==''){value='请输入关键字'}" onfocus="this.select()" onclick="if(this.value=='请输入关键字')this.value=''" />
</font>
<input name=image type=image id="image" src="http://img.baidu.com/img/go.gif" align=middle width=30 height=17 border=0 />
</div></t

<form action=http://www.baidu.com/baidu target=_blank>
<td height=38 colspan=\"2\" align=middle valign=center bgcolor=\"#FFFFFF\"><div align=center><font style=\"FONT-SIZE: 12px\">
<input id=word2 name=word size=\"20\" value=\"请输入关键字\" onmouseover=\"this.focus()\" onblur=\"if (value ==\'\'){value=\'你要搜索的地址\'}\" onfocus=\"this.select()\" onclick=\"if(this.value==\'你要搜索的地址\')this.value=\'\'你要搜索的地址\" />
</font>
<input name=image type=image id=\"image\" src=\"https://gss0.bdstatic.com/70cFsjip