以下是引用科汛官方在2008-5-1 7:48:00的发言:
目前科汛标签生成的搜索,实质上是调用search.js文件,比如文章系统下,就在article/search.js
这个search.js是在你添加/编辑栏目时自动生成的.
你这个问题也很简单,比如你可以重新复制search.js,并且命名为s.js
接下来,就打开s.js
比如如下
document.writeln('<table width=\"98%\" border=\"0\" align=\"center\">')
document.writeln('<form id=\"SearchForm\" name=\"SearchForm\" method=\"get\" action=\"/plus/Search.asp\">')
document.writeln(' <tr>')
document.writeln(' <td align=\"center\"><select name=\"SearchType\">')
document.writeln(' <option value=\"1\">标 题</option>')
document.writeln(' <option value=\"2\">内 容</option>')
document.writeln(' <option value=\"3\">作 者</option>')
document.writeln(' <option value=\"4\">录入者</option>')
document.writeln(' <option value=\"5\">关键字</option>')
document.writeln(' </select>')
document.writeln(' <select name=\"ClassID\" style=\"width:150\">')
document.writeln(' <option value=\"0\" selected=\"selected\">所有栏目</option>')
document.writeln('<option value=\'20088106776907\'>新闻动态 </option><option value=\'20082039846991\'> ├ 国外</option><option value=\'20080440748080\'> └ 国内</option><option value=\'20086759149882\'>11111 </option> </select>')
document.writeln(' <input name=\"KeyWord\" type=\"text\" class=\"textbox\" value=\"关键字\" onfocus=\"this.select();\"/>')
document.writeln(' <input name=\"ChannelID\" value=\"1\" type=\"hidden\" />')
document.writeln(' <input type=\"submit\" class=\"inputButton\" name=\"Submit\" value=\"搜 索\" /></td>')
document.writeln(' </tr>')
document.writeln('</form>')
document.writeln('</table>')
上面红色部分就是栏目,把你不要调用的删除就行了
接下来,我们就可以在你要显示的模板里调用
<script src="/article/s.js"></script>
因为想做每个栏目都可以单独搜索的搜索的搜索模式,但这些栏目有文章也有图片,相混在一起搜索,然后看到了以上的修改方法,只是还有问题。
以上内容我能理解了,但对于蓝色那行关于channelid始终不得其解,我想问"全部"的channelid是多少呢,文章是1,图片是2.。。。
谢谢哪位大侠解答下~~~