丑小鸭 发表于 2021-1-20 15:02:39

[发布] 快速回复框内添加提示背景图片[Discuz!x2-2.5]

样式名称:快速回复框添加提示背景图片(支持宽屏)

适用版本:Discuz!X2 - 2.5

风格编码:GBK UTF8

风格简介:

替换文件后,你的论坛快速回复区将会添加背景图片,如下图:

演示地址:www.xntarena.net

那么,下面我们来介绍如何做成以上效果,首先从你的论坛,把模板\ default \ forum \ viewthread_fastpost.htm 下载到本地,完成后,用记事本或Dreamweaver打开编辑。

找到以下代码:

<textarea rows =“ 6” cols =“ 80” name =“ message” id =“ fastpostmessage” onKeyDown =“ seditor_ctlent(event,{if $ _G ['gp_ordertype']!= 1}'fastpostvalidate($(\'fastpostform \'))'{else}'$(\'fastpostform \')。submit()'{/ if});“ tabindex =“ 4” class =“ pt”> </ textarea>

替换成:

<textarea rows =“ 6” cols =“ 80” name =“ message” id =“ fastpostmessage” onKeyDown =“ seditor_ctlent(event,{if $ _G ['gp_ordertype']!= 1}'fastpostvalidat($(\'fastpostform \'))'{else}'$(\'fastpostform \')。submit()'{/ if});“ “ tabindex =” 4“ class =” pt“ style =” BACKGROUND:url(static / image / common / hifisy.gif)#fff不重复左上;“ onclick =“ this.style.background =''”> </ textarea>

图片上传至网站:静态/图像/普通/ hifisy.gif
文件上传至网站:模板\ DEFAULT \论坛\ viewthread_fastpost.htm
绿色懒人替换包与背景图下载地址上传覆盖即可!

https://www.discuz.net/static/image/filetype/rar.gif hufu.rar (9.62 KB,下载次数:1690)

免费下载请移步:http ://www.xntarena.net/thread-20-1-1.html
页: [1]
查看完整版本: [发布] 快速回复框内添加提示背景图片[Discuz!x2-2.5]