找回密码
 注-册

QQ登录

只需一步,快速开始

查看: 1448|回复: 0

[美化] 论坛全局显示搜索框DZ7.0版

[复制链接]
Leya 发表于 2009-5-28 15:45:24 | 显示全部楼层 |阅读模式
模版文件templates/default/找到discuz.htm

查找:
  1. <span class="postbtn"><a href="misc.php?action=nav" onclick="floatwin('open_nav', this.href, 600, 410);return false;">{lang send_posts}</a></span>
复制代码
在上面加
  1. <form method="post" action="search.php" onSubmit="this.target='_blank';"><input type="hidden" name="searchsubmit" value="yes"><input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
  2. <input name="searchsubmit" class="button" type="submit" value="{lang search}"></form>
复制代码
模版文件里找到forumdisplay.htm
查找:
  1. <span class="postbtn" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.php?action=newthread&fid=$fid" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');return false;">{lang send_posts}</a></span>
复制代码
下面加
  1. <form method="post" action="search.php" onSubmit="this.target='_blank';"><input type="hidden" name="searchsubmit" value="yes"><input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
  2. <input name="searchsubmit" class="button" type="submit" value="{lang search}"></form>
复制代码
模版文件里找到viewthread.htm
查找:
  1. <span class="postbtn" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.php?action=newthread&fid=$fid" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');return false;">{lang send_posts}</a></span>
复制代码
下面加
  1. <form method="post" action="search.php" onSubmit="this.target='_blank';"><input type="hidden" name="searchsubmit" value="yes"><input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="27" class="input" style="{BGCODE}" onmouseover="this.focus();this.value='';this.onmouseover=null;" onfocus="this.select()">
  2. <input name="searchsubmit" class="button" type="submit" value="{lang search}"></form>
复制代码
首页.jpg
主题页.jpg
帖子内容页.jpg
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|DoDVip ( 桂ICP备14000730号 )

GMT+8, 2024-5-18 20:29 , Processed in 0.054895 second(s), 23 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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