搜索按钮(客户端表单)

这个比较长,只要将下列代码加入

1<body></body>

之间就行:

 1<form name="InputForm">
 2<div align="center"><center><p><script language="JavaScript">   
 3var FirstForm;   
 4function StartSearch()   
 5{   
 6document.forms[FirstForm+document.InputForm.SearchSelect.   
 7selectedIndex].elements[0].value=document.InputForm.SearchWords.value;   
 8document.forms[FirstForm+document.InputForm.SearchSelect.   
 9selectedIndex].submit();   
10}   
11</script><span style="font-size: 9pt">查找内容:</span><input name="SearchWords" size="21" style=" margin-left: 1px" type="text"/><br/>
12<span style="font-size: 9pt">搜索引擎:</span><select name="SearchSelect" size="1" style="background-color:   
13rgb(0,0,0); color: rgb(255,255,0)">
14<option selected="">Yahoo </option>
15<option>InfoSeek </option>
16<option>altavista</option>
17<option value="Magellan">Magellan</option>
18<option value="Point ">Point </option>
19<option value="中文YAHOO">中文YAHOO</option>
20<option value="全球FTP资源搜索系统">全球FTP资源搜索系统</option>
21<option value="全球游戏资源搜索系统">全球游戏资源搜索系统</option>
22<option>Yeah中文搜索</option>
23<option>Cseek中文搜索</option>
24<option value="台湾绿世界中文搜索">台湾绿世界中文搜索</option>
25<option value="台湾番薯藤">台湾番薯藤</option>
26<option value="东方网景">东方网景</option>
27</select><br/>
28<input onclick="StartSearch()" type="button" value=" 开始查找 "/> <script language="JavaScript">   
29FirstForm=document.forms.length   
30</script></p>
31</center></div>
32</form>
1<form action="http://search.yahoo.com/bin/search" method="get">
2<input name="p" type="hidden" value=""/>
3</form>
1<form action="http://www3.infoseek.com/Titles" method="GET">
2<input name="qt" type="hidden" value=""/><input name="col" type="hidden" value="WW"/><input name="sv" type="hidden" value="IS"/><input name="lk" type="hidden" value="noframes"/><input name="nh" type="hidden" value="10"/>
3</form>
1<form action="http://www.altavista.digital.com/cgi-bin/query?pg=q&amp;what=web&amp;q=">
2<input name="q" type="hidden" value=""/>
3</form>
1<form action="http://www.mckinley.com/searcher.cgi?query=">
2<input name="query" type="hidden" value=""/>
3</form>
1<form action="http://point.lycos.com/cgi-bin/pursuit?query=">
2<input name="query" type="hidden" value=""/>
3</form>
1<form action="http://search.chinese.yahoo.com/search/gb" method="get">
2<input name="p" type="hidden" value=""/>
3</form>
1<form action="http://ftpsearch.unit.no/ftpsearch">
2<input name="query" type="hidden" value=""/>
3</form>
1<form action="http://www.gamesdomain.com/cgi-bin/wwwwais">
2<input name="keywords" type="hidden" value=""/>
3</form>
1<form action="http://www.yeah.net/cgi-bin/search/search.cgi">
2<input name="key" type="hidden" value=""/>
3</form>
1<form action="http://www.cseek.com/homepage/cgi/srchengine.cgi">
2<input name="searchkey" type="hidden" value=""/>
3</form>
1<form action="http://greenworld.com.tw/explorer/search.pl?Keywords=">
2<input name="Keywords" type="hidden" value=""/>
3</form>
1<form action="http://search.yam.org.tw/b5/search/">
2<input name="k" type="hidden" value=""/>
3</form>
1<form action="http://www.orinet.cn.net/cgi-bin/yang/addlinks/searchlink.pl">
2<input name="keywords" type="hidden" value=""/>
3</form>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus