Discuz教程网

[代码修改] 绿色快速回复框内添加提示背景图片

[复制链接]
authicon dly 发表于 2011-11-5 11:14:54 | 显示全部楼层 |阅读模式
1105010109e6df39a62d3dd6c3.gif
查找templates\default\viewthread_fastpost.htm
  1. <textarea rows="5" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, <!--{if $ordertype != 1}-->'fastpostvalidate($(\'fastpostform\'))'<!--{else}-->'$(\'fastpostform\').submit()'<!--{/if}-->);" tabindex="4" class="txtarea"></textarea>
复制代码
替换为
  1. <textarea rows="5" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, <!--{if $ordertype != 1}-->'fastpostvalidate($(\'fastpostform\'))'<!--{else}-->'$(\'fastpostform\').submit()'<!--{/if}-->);" tabindex="4" class="txtarea"style="BACKGROUND: url({IMGDIR}/notice_bg.gif) #fff no-repeat center top;" onclick="this.style.background=''"></textarea>
复制代码
或查找
  1. ></textarea>
复制代码
在前面加入
  1. style="BACKGROUND: url({IMGDIR}/notice_bg.gif) #fff no-repeat center top;" onclick="this.style.background=''"
复制代码
如果要修改图片显示位置 修改“no-repeat center top;" left,center,right

看了有位朋友没成功哦。你可以用原来的文件覆盖回去,注意修改的时候不要添加错咯。

修改前最好保存下源文件,没修改正确可以覆盖再重新修改


下载附件图片为notice_bg.gif 传到 images/default/ 下



上一篇:每天定时开放注册 For Discuz 7.0 7.1 7.2
下一篇:主题管理 贴内评分小美化 显示今日还可以评分多少 For Discuz 7.2
authicon 迷茫の执着 发表于 2011-11-5 12:36:30 | 显示全部楼层
貌似文件位置有点错误啊!

路径应该是:templates\default\forum\viewthread_fastpost.htm
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 16:36

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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