说明: 界面好一点的搜索脚本
效果: 点这里在新窗口中看效果!
代码: 要完成此效果把如下代码加入到<body>区域中
接下来将下列代码加入到上面代码的后面:
<table width=59% border=1 cellpadding=0 cellspacing=0
align=center valign=top>
<tr>
<td width=100% align=left bgcolor=#42526B height="232">
<form name="form">
<center>
<font color="yellow"> </font>
</center>
<center>
<font color="yellow">关键字(小写字符,支持中文):</font>
<font color="yellow"><b>
<input name="search" type=text size="20">
</b> </font>
</center>
<font color="yellow"><b><br>
</b> </font>
<center>
<font color="#FFFF00">返回记录数:</font>
<font color="yellow"><font face="Arial,
Helvetica, sans-serif">
<select name="numhits" size="1">
<option selected value="25">25
<option value="50">50
<option value="75">75
<option value="100">100
<option value="150">150
<option value="200">200
</select>
</font>检索分类<font face="Arial, Helvetica, sans-serif">
</font>
<b><font size=3><font size=3>
<select size=1 name="whichdir" class="pt9">
<option selected value="http">ALL
<option value="java">javaScript
<option value="business">Business
<option value="commun">Communications
<option value="desktop">Desktop
<option value="educate">Education
<option value="games">Games
<option value="graphics">Graphics
<option value="hobby">Hobby
<option value="homeuse">Home Use
<option value="inet">Internet
<option value="multi">Multimedia
<option value="program">Programming
<option value="tools">System Tools
</select>
</font></font> </b> </font>
</center>
<font color="yellow"><b><font size=3><font
size=3> <br>
<br>
</font></font></b></font><font
color=yellow size=3><font color=yellow size=3>
<center>
<font color="yellow"><b>
<input type="button" name="submit"
value="Search" onClick="validate_form()">
<input type="reset" name="reset"
value=" Clear ">
</b> </font>
</center>
</font></font>
</form></table>
作者:佚名 来源: 网上转帖 |