"即时"复制发帖框内容 for 5.0.0 by lu5266
说明:
及时复制当前“文字编辑框”的内容到剪贴板,防止意外事件导致正在书写、编辑的文字或者内容丢失
(在关闭页面的时候复制) 文件列表:
./templates/default/post_newthread.htm (新贴)
./templates/default/post_editpost.htm (编辑)
./templates/default/post_newreply.htm (回复)
./templates/default/viewthread.htm (快速回复)
./templates/default/forumdisplay.htm (快速发贴)
./templates/default/pm_send.htm (pm)
(因为是模板文件,所以假如其他风格也有对应文件,也需对应修改) 修改方法:(修改自己认为要修改的就可以了,不必全部哦)
1.修改 forumdisplay.htm / viewthread.htm
查找:- <input class="checkbox" type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
复制代码 上面加:- <input class="checkbox" type="checkbox" id="copymessage" checked>复制内容<br>
复制代码 2.修改 post_newthread.htm/post_editpost.htm/post_newreply.htm
查找:- <input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck> {lang disable} {lang post_parseurl}<br>
复制代码 上面加:- <input class="checkbox" type="checkbox" id="copymessage" checked>复制内容<br>
复制代码 3. 修改 pm_send.htm
查找:- <span class="smalltxt"><input class="checkbox" type="checkbox" name="saveoutbox" value="1">{lang pm_send_save_outbox}</span>
复制代码 后面加上- <br/><span class="smalltxt"><input class="checkbox" type="checkbox" id="copymessage" checked> 复制内容</span>
复制代码 4: 在上面所有修改的文件
都直接加在末尾加上- <script language=javascript>
- //copymessage by lu5266
- //Site: http://www.discuzs.net
- if(typeof($('postform')) != 'undefined'){
- function copymsg(){
- if($('copymessage').checked) copycode($('postform').message);
- }
- window.onunload= new Function("copymsg();");
- }
- </script>
复制代码 完成
[ 本帖最后由 lu5266 于 2006-11-15 21:14 编辑 ] |
-
1
评分次数
-