如何将会员后台“插入图片”改成“批量上传图片”按钮?_动易Cms教程
教程Tag:暂无Tag,欢迎添加,赚取U币!
问题:网站会员进入会员后台添加图片时,如何将单个“插入图片”按钮改成“批量上传图片”按钮?如下图所示:
解决:编辑网站根目录下的editor.asp 文件,您可以找到以下内容:
Case 3 ’说明框 strButtons = strButtons & arrButtons(0) & "|" & arrButtons(2) & "|" & arrButtons(4) & "|" & arrButtons(3) & "|" strButtons = strButtons & arrButtons(25) & "|" & arrButtons(26) & "|" & arrButtons(3) & "|" & arrButtons(27) & "|" strButtons = strButtons & arrButtons(28) & "|" & arrButtons(29) & "|" & arrButtons(30) & "|" & arrButtons(31) & "|" strButtons = strButtons & arrButtons(22) & "|" & arrButtons(35) & "|" & arrButtons(36) & "|" & arrButtons(52) & "|" strButtons = strButtons & arrButtons(3) & "|" & arrButtons(55) & "|" & arrButtons(57) & "|" & arrButtons(58) & "|" strButtons = strButtons & arrButtons(59) & "|" & arrButtons(60) & "|" & arrButtons(1) |
将上述代码中arrButtons(55)改成arrButtons(56)即可。
提示:editor.asp 文件中提供了各模块中调用的编辑器按钮数组,如文章频道中调用的编辑器为Case 0,模板中调用的编辑器为Case 1 ,留言和公告中调用的编辑器为Case 2,图片频道、下载频道中调用的编辑器为Case 3,商城频道中调用的编辑器为Case 4。修改editor.asp 文件中相应的值即可显示不同的编辑器按钮数组。
附:editor.asp 文件中调入按钮数组及含义: arrButtons(0) = "yToolbar$$$" arrButtons(1) = "/yToolbar$$$" arrButtons(2) = "TBHandle$$$" arrButtons(3) = "TBSep$$$" arrButtons(4) = "TBGen$$$" arrButtons(5) = "Btn$全部选择$format(’selectall’)$selectall.gif" arrButtons(6) = "Btn$删除$format(’delete’)$delete.gif" arrButtons(7) = "Btn$剪切$format(’cut’)$cut.gif" arrButtons(8) = "Btn$复制$format(’copy’)$copy.gif" arrButtons(9) = "Btn$粘贴$format(’paste’)$paste.gif" arrButtons(10) = "Btn$从word中粘贴$insert(’word’)$wordpaste.gif" arrButtons(11) = "Btn$撤消$format(’undo’)$undo.gif" arrButtons(12) = "Btn$恢复$format(’redo’)$redo.gif" arrButtons(13) = "Btn$查找 / 替换$findstr()$find.gif" arrButtons(14) = "Btn$计算器$insert(’calculator’)$calculator.gif" arrButtons(15) = "Btn$打印$format(’Print’)$print.gif" arrButtons(16) = "Btn$查看帮助$insert(’help’)$help.gif" arrButtons(17) = "Btn$左对齐$format(’justifyleft’)$aleft.gif" arrButtons(18) = "Btn$居中$format(’justifycenter’)$acenter.gif" arrButtons(19) = "Btn$右对齐$format(’justifyright’)$aright.gif" arrButtons(20) = "Btn$两端对齐$format(’JustifyFull’)$JustifyFull.gif" arrButtons(21) = "Btn$绝对或相对位置$format(’absolutePosition’)$abspos.gif" arrButtons(22) = "Btn$删除文字格式$format(’RemoveFormat’)$clear.gif" arrButtons(23) = "Btn$插入段落$format(’insertparagraph’)$paragraph.gif" arrButtons(24) = "Btn$插入换行符号$insert(’br’)$chars.gif" arrButtons(25) = "Btn$字体颜色$insert(’fgcolor’)$fgcolor.gif" arrButtons(26) = "Btn$文字背景色$insert(’fgbgcolor’)$fgbgcolor.gif" arrButtons(27) = "Btn$加粗$format(’bold’)$bold.gif" arrButtons(28) = "Btn$斜体$format(’italic’)$italic.gif" arrButtons(29) = "Btn$下划线$format(’underline’)$underline.gif" arrButtons(30) = "Btn$删除线$format(’StrikeThrough’)$strikethrough.gif" arrButtons(31) = "BtnMenu$更多文字格式$showToolMenu(’font’)$arrow.gif" arrButtons(32) = "Btn$显示或隐藏表格虚线、按钮等显示样式$showBorders()$showBorders.gif" arrButtons(33) = "Btn$图片左环绕$imgalign(’left’)$imgleft.gif" arrButtons(34) = "Btn$图片右环绕$imgalign(’right’)$imgright.gif" arrButtons(35) = "Btn$插入超级连接$format(’CreateLink’)$url.gif" arrButtons(36) = "Btn$取消超级链接$format(’unLink’)$nourl.gif" arrButtons(37) = "Btn$插入普通水平线$format(’InsertHorizontalRule’)$line.gif" arrButtons(38) = "Btn$插入非凡水平线$insert(’hr’)$sline.gif" arrButtons(39) = "Btn$插入手动分页符$insert(’page’)$page.gif" arrButtons(40) = "Btn$插入当前日期$insert(’nowdate’)$date.gif" arrButtons(41) = "Btn$插入当前时间$insert(’nowtime’)$time.gif" arrButtons(42) = "Btn$插入栏目框$insert(’FIELDSET’)$fieldset.gif" arrButtons(43) = "Btn$插入网页$insert(’iframe’)$htm.gif" arrButtons(44) = "Btn$插入Excel表格$insert(’excel’)$excel.gif" arrButtons(45) = "Btn$插入表格$TableInsert()$table.gif" arrButtons(46) = "BtnMenu$表格操作$showToolMenu(’table’)$arrow.gif" arrButtons(47) = "Btn$插入下拉菜单$Insermenu(’" & Now() & "’)$menu.gif" arrButtons(48) = "BtnMenu$更多表单控件$showToolMenu(’form’)$arrow.gif" arrButtons(49) = "Btn$插入滚动文本$insert(’insermarquee’)$Marquee.gif" arrButtons(50) = "BtnMenu$插入更多样式$showToolMenu(’object’)$arrow.gif" arrButtons(51) = "Btn$插入表情符号$insert(’inseremot’)$Emot.gif" arrButtons(52) = "Btn$插入非凡符号$Insertlr(’editor_tsfh.asp’,300,190," & (Now() - Date) * 24 * 60 * 60 * 1000 & ")$symbol.gif" arrButtons(53) = "Btn$插入公式$insert(’InsertEQ’)$eq.gif" arrButtons(54) = "BtnMenu$公式操作$showToolMenu(’gongshi’)$arrow.gif" arrButtons(55) = "Btn$插入图片,支持格式为:jpg、gif、bmp、png等$insert(’pic’)$img.gif" arrButtons(56) = "Btn$批量上传图片,支持格式为:jpg、gif、bmp、png等$insert(’batchpic’)$pimg.gif" arrButtons(57) = "Btn$插入flash多媒体文件$insert(’swf’)$flash.gif" arrButtons(58) = "Btn$插入视频文件,支持格式为:avi、wmv、asf等$insert(’wmv’)$wmv.gif" arrButtons(59) = "Btn$插入RealPlay文件,支持格式为:rm、ra、ram$insert(’rm’)$rm.gif" arrButtons(60) = "Btn$上传附件$insert(’fujian’)$fujian.gif" arrButtons(61) = "Btn$从上传文件中选择$insert(’SelectUpFile’)$SelectUpFile.gif" arrButtons(62) = "Btn$插入标签$insert(’Label’)$label.gif" arrButtons(63) = "Btn$图片单行聚中$imgalign(’center’)$imgcenter.gif" |