原始檔如下..
<script language="JavaScript">
var FirstForm;
function StartSearch(){
document.forms[FirstForm+document.InputForm.SearchSelect.
selectedIndex].elements[0].value=document.InputForm.SearchWords.value;
document.forms[FirstForm+document.InputForm.SearchSelect.
selectedIndex].submit();
}
</script>
<form Name="InputForm">
Search For: <input name="SearchWords" type=text size=30>
Search Engine: <select Name="SearchSelect">
<option selected>Yahoo
<option>Altavista
<option>Excite
<option>Lycos
<option>InfoSeek
<option>Magellan
<option>Webcrawler
</select>
<input type=button value="Search" onClick="StartSearch()">
</form>
<script language="JavaScript">
FirstForm=document.forms.length
</script>
<form action="http://search.yahoo.com/bin/search" method=get>
<input type="hidden" size=35 name=p>
</form>
<form action="http://www.altavista.digital.com/cgi-bin/query" method=get>
<input type=hidden name=q size=35 maxlength=200 value="">
<input type=hidden name=pg value=q>
<input type=hidden name="fmt" value=".">
<input type=hidden name=what value=web>
</form>
<form action="http://www.excite.com/search.gw" method=post>
<input type="hidden" name="search" size=35>
<input type="hidden" name="searchType"
value="Keyword">
<input type="hidden" name="category" value="default"
checked>
<input type="hidden" name="mode" value="relevance">
<input type="hidden" name="showqbe" value="1">
<input type="hidden" name="display" value="html3,hb">
</form>
<form action="http://www.lycos.com/cgi-bin/nph-randurl
/cgi-bin/largehostpursuit1.html">
<input type=hidden size=35 name="query">
</form>
<FORM METHOD="GET" ACTION="http://www3.infoseek.com/MSTitles">
<INPUT type="hidden" name="qt" VALUE="" SIZE=30>
<INPUT TYPE="hidden" name="submit" VALUE="Infoseek
Search">
</FORM>
<FORM ACTION="http://www.mckinley.com/search.gw" METHOD=get>
<INPUT TYPE="hidden" NAME="search">
<INPUT TYPE="hidden" NAME="c" VALUE="web">
<INPUT TYPE="hidden" NAME="look" VALUE="magellan">
</FORM>
<FORM ACTION="http://www.webcrawler.com/cgi-bin/WebQuery" METHOD=get>
<INPUT TYPE="hidden" size=35 name=searchText>
</FORM>