如何將會員后臺“插入圖片”改成“批量上傳圖片”按鈕?_動易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" |