看效果: 演示地址:http://www.asterisk-help.com/
实现代码:
1: 打开\template\wind\fastpost.htm
找到
<textarea id="textarea" name="atc_content" style="width:100%;height:140px;padding:0;margin:0;border:0 none;overflow:auto;" οnkeydοwn="quickpost(event)"></textarea>
添加代码如下:
<!--
懒人发表
-->
<div id="rqcss"><strong>>></strong>
支持Asterisk-help社区, 谢绝无意义字符回复
<select id="s1" οnchange="qreplyfun()" style="width: 160px; height: 20px" >
<option value="">快速回复</option>
<option value="楼主辛苦了,谢谢楼主分享![s:154]">楼主辛苦了,谢谢楼主分享![s:154] </option>
<option value="看看隐藏了什么好东西?[s:120]">看看隐藏了什么好东西?[s:120] </option>
<option value="好帖,好贴啊,强烈支持[s:151]">好帖,好贴啊,强烈支持[s:151] </option>
<option value="这个问题我也不知道?等待高人![s:166]">这个问题我也不知道?等待高人![s:166] </option>
<option value="哈哈!这个有点意思。[s:11] ">哈哈!这个有点意思。[s:11] </option>
<option value="新手学习![s:14]">新手学习![s:14] </option>
<option value="很郁闷!一直没搞懂。[s:122]">很郁闷!一直没搞懂。[s:122] </option>
<option value="感谢分享![s:142]">感谢分享![s:142] </option>
<option value="Asterisk-help社区的资料很不错[s:161]">Asterisk-help社区的资料很不错[s:161] </option>
</select>
</div>
<script type="text/javascript">function qreplyfun(){var v = document.getElementById("s1").value; document.getElementById('textarea').value=v;}</script><style type="text/css">#rqcss {width:100%;padding:4px 0;border:#ddedf7 1px dashed;background:#f1f9fd;color:#006699;} #rqcss img {margin-bottom:-3px;}</style>
<span id="fastpostreturn"></span>
<!--
懒人发表
-->
<!--
EOT;
if (isset($db_sitemsg['reply']['0']) && $db_sitemsg['reply']['0'] && $psot_sta) {
print<<<EOT
-->