<P> <TABLE style="WIDTH: 472px; HEIGHT: 36px" width=472> <FORM onsubmit="return checksearch(this)" action=?action=|admin|10172|cn method=post target=_top> <TBODY> <TR> <TD align=middle width="45%" height=30>搜索内容 </TD> <TD width="55%" height=30><INPUT size=8 name=keyword> 搜索类别<SELECT name=search_type> <OPTION value=ware>产品</OPTION> <OPTION value=page selected>网页</OPTION> <OPTION value=news>新闻</OPTION></SELECT> <INPUT type=hidden name=faction><INPUT type=submit value=搜索 name=sub_search></TD></TR></TBODY></FORM></TABLE></P> <P> </P> <P> </P> <SCRIPT language=JavaScript> <!-- function checksearch(theForm) { if (theForm.keyword.value == '') { alert('请输入要搜索的内容!'); theForm.keyword.focus(); return(false); } if (theForm.search_type.value=='ware') { theForm.faction.value='list'; return true; }
if (theForm.search_type.value=='page') { theForm.faction.value='search'; return true; } if (theForm.search_type.value=='news') { theForm.faction.value='news'; return true; } } //--> </SCRIPT>
备注 :把红色部分换成自己网站的摸版编号 |