解决方法:
以下提供前台调用样例表单代码:
<table border="0" cellspacing="0" cellpadding="0" style="line-height: 20px">
<form method="get" action="http://www.xxx.gov.cn/jsearch/index.jsp" target="_blank" name="qForm">
<tbody>
<tr>
<td width="145"><input id="q" οnblur="if(this.value==""){this.value="请您输入关键字"}" οnclick="if(this.value=="请您输入关键字"){this.value="";this.focus();}" style="padding-left: 5px; width: 140px; color: #909090" name="q" value="请您输入关键字" type="text" /> <input type="hidden" name="pagemode" value="result" /><input type="hidden" name="style" value="1" /><input type="hidden" name="appid" value="1" /><input type="hidden" name="ck" value="0" /><input id="pos" type="hidden" name="pos" value="title,content" /><input type="hidden" name="colgroup" value="1,2,3,4,5" /></td>
<td width="61"><input src="http://www.xxx.gov.cn/picture/0/101029152324256.gif" type="image" name="imageField" /></td>
</tr>
</tbody>
</form>
</table>
上述代码中查询特定栏目需要选取一个jsearch库,这里显示的库:<input type="hidden" name="appid" value="1" />,版面套系要和库一致:<input type="hidden" name="style" value="1" />,colgroup就是控制所要搜索的栏目:<input type="hidden" name="colgroup" value="1,2,3,4,5" />
通过以上前台调用代码可以搜索特定的栏目(上述栏目id为1,2,3,4,5)。