头部搜索框
修改方法<BR><BR>1、编辑\\templates\\default\\header.htm<BR><BR>查找:<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code0\'));\">复制内容到剪贴板</SPAN>
<H5><SPAN class=t_tag onclick=tagshow(event) href=\"tag.php?name=%B4%FA%C2%EB\">代码</SPAN>:</H5><CODE id=code0><FONT face=新宋体><script type=\"text/javascript\" src=\"include/javascript/ajax.js\"></script></FONT></CODE></DIV>在现面添加:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code1\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code1><FONT face=新宋体><script src=\"topse/cookie-mini.js\" type=\"text/javascript\"></script><BR><link rel=\"stylesheet\" type=\"text/css\" href=\"topse/top_search.css\" /></FONT></CODE></DIV>继续查找:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code2\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code2><FONT face=新宋体><div id=\"ad_headerbanner\"></div></FONT></CODE></DIV>在下面添加:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code3\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code3><FONT face=新宋体><div id=\"top_s_box\"><BR> <div id=\"top_s_box_l\"><BR> <div id=\"top_s_box_r\"><BR> <<SPAN class=t_tag onclick=tagshow(event) href=\"tag.php?name=for\">for</SPAN>m method=\"get\" target=\"_blank\" action=\"http://www.<SPAN class=t_tag onclick=tagshow(event) href=\"tag.php?name=google\">google</SPAN>.com/search\" id=\"g_form\" style=\"display:none\"><BR> <input type=\"text\" name=\"q\" maxlength=\"255\" value=\"\" class=\"t_s_txt\" id=\"g_s_txe\"><BR> <input type=\"hidden\" name=\"ie\" value=\"GB2312\"><BR> <input type=\"hidden\" name=\"oe\" value=\"GB2312\"><BR> <input type=\"hidden\" name=\"hl\" value=\"zh-CN\"><BR> <div class=\"t_s_b_a\"><BR> <input type=\"submit\" name=\"btnG\" value=\"\" id=\"g_img\"><BR> </div><BR> <div style=\"display:none\"><BR> <input type=\"hidden\" name=\"domains\" value=\"$bbname\" id=\"g_fw_val\"><BR> <input type=\"radio\" name=\"sitesearch\" value=\"$bbname\" checked><BR> </div><BR> </form><BR> <BR> <form method=\"get\" target=\"_blank\" action=\"http://www.baidu.com/baidu\" id=\"b_form\" style=\"display:none\"><BR> <input type=\"text\" name=\"word\"maxlength=\"255\" value=\"\" class=\"t_s_txt\" id=\"b_s_txe\"><BR> <input name=\"tn\" type=\"hidden\" value=\"bds\"><BR> <input name=\"cl\" type=\"hidden\" value=\"3\"><BR> <input name=\"ct\" type=\"hidden\" value=\"2097152\"><BR> <input name=\"si\" type=\"hidden\" value=\"$bbname\" id=\"b_fw_val\"><BR><BR> <div class=\"t_s_b_a\"><BR> <input type=\"submit\" value=\"\" id=\"b_img\"><BR> </div><BR> <div style=\"display:none\"><BR> <input name=\"s\" type=\"radio\"><BR> <input name=\"s\" type=\"radio\" checked><BR> </div><BR> </form><BR> <BR> <a href=\"javascript:t_showmu()\" class=\"t_s_b_a_d\"onmouseout=\"t_hidmu()\"><img src=\"topse/s_b_s_r.gif\" alt=\"\" /></a><BR> <BR> <div id=\"topsearch_menu\"class=\"popupmenu_popup headermenu_popup\"style=\"display:none\"onmouseover=\"t_showmu()\" onmouseout=\"t_hidmu()\"><BR> 搜索引擎选择:<BR> <a href=\"javascript:action_yj(\'b\')\"><img src=\"topse/b_img.gif\" alt=\"<SPAN class=t_tag onclick=tagshow(event) href=\"tag.php?name=%B0%D9%B6%C8\">百度</SPAN>\" id=\"b_yj\"/></a><BR> <a href=\"javascript:action_yj(\'g\')\"><img src=\"topse/g_img.gif\" alt=\"google\" id=\"g_yj\"/></a><BR> | <BR> 搜索范围:<BR> <a href=\"javascript:action_fw(\'b\')\" id=\"t_s_yj_f_b\"><SPAN class=t_tag onclick=tagshow(event) href=\"tag.php?name=%C2%DB%CC%B3\">论坛</SPAN></a><BR> <a href=\"javascript:action_fw(\'a\')\" id=\"t_s_yj_f_a\">全站</a><BR> </div><BR><BR> </div><BR> </div><BR><BR> <script src=\"topse/top_search.js\" type=\"text/javascript\"></script><BR> </div></FONT></CODE></DIV>2、编辑\\topse\\top_search.js<BR><BR>查找:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code4\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code4><FONT face=新宋体>此处改为论坛<SPAN class=t_tag onclick=tagshow(event) href=\"tag.php?name=%D3%F2%C3%FB\">域名</SPAN></FONT></CODE></DIV>一共有4处,替换成自己的论坛域名<BR><BR>3、上传topse<SPAN class=t_tag onclick=tagshow(event) href=\"tag.php?name=%CE%C4%BC%FE\">文件</SPAN>夹至论坛根目录<BR><BR>4、更新缓存<BR> <DIV class=t_msgfont id=postmessage_6136568>加入搜索文字的修改</DIV>
<DIV class=t_msgfont>编辑header.htm<BR><BR>查找:
<DIV class=blockcode><SPAN class=headactions onclick="copycode($('code5'));">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code5><FONT face=新宋体><input type="text" name="q" maxlength="255" value=""class="t_s_txt" id="g_s_txe"></FONT></CODE></DIV>替换为:
<DIV class=blockcode><SPAN class=headactions onclick="copycode($('code6'));">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code6><FONT face=新宋体><input type="text" name="q" maxlength="255" value="请输入要搜索的文字"onFocus="this.value=''" class="t_s_txt" id="g_s_txe"></FONT></CODE></DIV>查找:
<DIV class=blockcode><SPAN class=headactions onclick="copycode($('code7'));">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code7><FONT face=新宋体><input type="text" name="word"maxlength="255" value=""class="t_s_txt" id="b_s_txe"></FONT></CODE></DIV>替换为:
<DIV class=blockcode><SPAN class=headactions onclick="copycode($('code8'));">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code8><FONT face=新宋体><input type="text" name="word"maxlength="255" value="请输入要搜索的文字"onFocus="this.value=''" class="t_s_txt" id="b_s_txe"></FONT></CODE></DIV></DIV>
页:
[1]