Discuz教程网

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

[复制链接]
authicon 09927306 发表于 2010-12-10 22:19:43 | 显示全部楼层 |阅读模式

查找templates\default\viewthread_fastpost.htm

找到:
  1. <textarea rows="5" cols="80" name="message" id="fastpostmessage" tabindex="4" class="txtarea"></textarea>

复制代码

替换为:
  1. <textarea rows="5" cols="80" name="message" id="fastpostmessage" tabindex="4" class="txtarea"style="BACKGROUND: url({IMGDIR}/notice_bg.gif) #fff no-repeat center top;"></textarea>
复制代码


查找
  1. ></textarea>
复制代码

在前面加入
  1. style="BACKGROUND: url({IMGDIR}/notice_bg.gif) #fff no-repeat center top;"
复制代码


如果要修改图片显示位置 修改“no-repeat center top;\  ”left,center,right

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

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


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





上一篇:经典的问卷调查投票系统升级版(可嵌入帖内)
下一篇:【discuz!X1.5】翻倍增加广告收益,没有签名时默认显示广告
authicon dyyhf 发表于 2010-12-17 14:18:33 | 显示全部楼层
本帖最后由 dyyhf 于 2010-12-17 14:19 编辑

怎么没写清楚啊:
把什么替换为

<textarea rows=\"5\" cols=\"80\" name=\"message\" id=\"fastpostmessage\" tabindex=\"4\" class=\"txtarea\"style=\"BACKGROUND: url({IMGDIR}/notice_bg.gif) #fff no-repeat center top;\"></textarea>
authicon dyyhf 发表于 2010-12-17 14:25:55 | 显示全部楼层
X1.5 用不了啊?
authicon dly 发表于 2010-12-17 16:23:46 | 显示全部楼层
回复 dyyhf 的帖子

可以用呀,本站在用。。。
authicon  楼主| 09927306 发表于 2010-12-17 16:28:35 | 显示全部楼层
回复 dyyhf 的帖子

找到:
  1. <textarea rows="5" cols="80" name="message" id="fastpostmessage" tabindex="4" class="txtarea"></textarea>
复制代码

替换为:
  1. <textarea rows="5" cols="80" name="message" id="fastpostmessage" tabindex="4" class="txtarea"style="BACKGROUND: url({IMGDIR}/notice_bg.gif) #fff no-repeat center top;"></textarea>
复制代码

查找
  1. ></textarea>
复制代码

在前面加入
  1. style="BACKGROUND: url({IMGDIR}/notice_bg.gif) #fff no-repeat center top;"
复制代码

两种方法只要一种就可以了,其实是一样的。。。。

authicon 皆无 发表于 2011-5-9 00:59:43 | 显示全部楼层
喜欢喜欢喜欢
authicon rin421 发表于 2011-5-9 13:59:36 | 显示全部楼层
顶顶更健康
authicon 82xiaochong911 发表于 2011-5-11 03:59:56 | 显示全部楼层
很好 很强大。。谢谢分享
authicon 丁加丁 发表于 2011-5-11 10:59:39 | 显示全部楼层
强人,佩服死了。
authicon 卡卡猫 发表于 2011-5-12 16:59:32 | 显示全部楼层
不错,谢谢分享
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 12:30

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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