打开文件templatedefaultforum/ajax_imagelist.htm
搜索:
<table cellspacing="2" cellpadding="2" class="imgl"><tr>
修改为:
<table cellspacing="2" cellpadding="2" class="imgl"><tr> <a onclick="Allinimage();return false;" href="JavaScript:;" class="xi2">插入全部图片</a>
打开staticjsforum_post.js
最下部分加入
function Allinimage() { var attachListObj = $('e_imgattachlist').getElementsByTagName("td"); for(var i in attachListObj) { if(typeof attachListObj[i] == "object") { var attach = attachListObj[i]; var ids = attach.id.split('_td_'); if(ids[0] == 'image') { insertAttachimgTag(ids[1]); var txt = wysiwyg ? 'rn<br/>' : ''; insertText(txt, strlen(txt), 0); } } } doane(); }
覆盖同名文件搞定。