Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[求助] 刷新页面 第一次搜索总是进入到“文章”搜索

[复制链接]
withering 发表于 2011-8-18 15:05:35 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X2
浏览器: IE8 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: https://discuz.dismall.com/forum.php?mod=post&action=newthread&fid=210
本帖最后由 withering 于 2011-8-18 15:06 编辑

<DIV class=search>
<form action="search.php?searchsubmit=yes" method="post" target="_blank">
<DIV class=s_title id=right4_menu><A id=right4_menu_1 title=album
onclick=check_form(1)>相册</A> | <A class=on id=right4_menu_2 title=forum
onclick=check_form(2)>帖子</A> | <A id=right4_menu_3 title=user
onclick=check_form(3)>好友</A> | <A id=right4_menu_4 title=blog
onclick=check_form(4)>日志</A> | <A id=right4_menu_5 title=group
onclick=check_form(5)>群组</A> </DIV>
<DL>
  <DT><SPAN><IMG src="chachengji_dzx/search_b2.gif"
  border=0></SPAN> <INPUT id=search_select type=hidden value=portal name=mod>
  <INPUT type=hidden value=fdf0a228 name=formhash> <INPUT type=hidden
  value=title name=srchtype> <INPUT type=hidden value=0 name=srhfid> <INPUT
  id=searchkeywords
  onfocus="if (value =='辰溪在线!搜一搜,您会找到想要的东东!'){value =''}" value=辰溪在线!搜一搜,您会找到想要的东东! name=srchtxt>
  </DT>
  <DD><INPUT type=image src="chachengji_dzx/search_b1.gif"
  border=0 name=image> </DD></DL></FORM></DIV>


<SCRIPT type=text/javascript>
function check_form(n) {
for(i = 1; i < 6; i ++) {
$('right4_menu_'+i).className = '';
}
$('right4_menu_'+n).className = 'on';
$('search_select').value = $('right4_menu_'+n).title;
if(n == 1) {
$('topsrch').action = 's.php?mod=list&searchsubmit=yes';
} else {
$('topsrch').action = 'search.php?searchsubmit=yes';
}
}
</SCRIPT>
</div>


刷新页面 第一次搜索总是进入到“文章”搜索    必须点一下上面的   帖子 相册 好友 日志 才能正常搜索
请问如上代码要修改哪里才能默认搜索帖子


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-12 13:16 , Processed in 0.092353 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表