如何設置會員后臺的HTML在線編輯器(2)_動易Cms教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!

      將上述代碼中arrButtons(55)改成arrButtons(56)即可。注重:批量上傳圖片最好不要自定義,因為上傳的地址是根據ChannelID 制定的。

      提示: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(101) = "TBGen$$$"
        arrButtons(102) = "TBGen2$$$"
        arrButtons(103) = "TBGen3$$$"
        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$插入超級連接$insert('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"
        arrButtons(64) = "Btn$插入帶標題的分頁$insert('pagetitle')$pagetitle.gif"

        arrButtons(65) = "Btn$顯示文章標題等信息$SuperFunctionLabel('" & InstallDir & "Editor/editor_label.asp','GetArticleList','文章列表函數標簽',1,'GetList',800,700)$LabelIco\GetArticleList.gif"
        arrButtons(66) = "Btn$顯示圖片文章$SuperFunctionLabel('" & InstallDir & "Editor/editor_label.asp','GetPicArticle','顯示圖片文章標簽',1,'GetPic',700,500)$LabelIco\GetPicArticle.gif"
        arrButtons(67) = "Btn$顯示幻燈片文章$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicArticle','顯示幻燈片文章標簽',1,'GetSlide',700,500)$LabelIco\GetSlidePicArticle.gif"
        arrButtons(68) = "Btn$文章自定義列表$SuperFunctionLabel('" & InstallDir &"Editor/editor_CustomListLabel.asp','CustomListLable','文章自定義列表標簽',1,'GetArticleCustom',720,700)$LabelIco\GetArticleCustom.gif"
        arrButtons(69) = "Btn$顯示軟件標題$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSoftList','下載列表函數標簽',2,'GetList',800,700)$LabelIco\GetSoftList.gif"
        arrButtons(70) = "Btn$顯示圖片下載$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPicSoft','顯示圖片下載標簽',2,'GetPic',700,500)$LabelIco\GetPicSoft.gif"
        arrButtons(71) = "Btn$顯示幻燈片下載$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicSoft','顯示幻燈片下載標簽',2,'GetSlide',700,500)$LabelIco\GetSlidePicSoft.gif"
        arrButtons(72) = "Btn$下載自定義列表$SuperFunctionLabel('" & InstallDir &"Editor/editor_CustomListLabel.asp','CustomListLable','下載自定義列表標簽',2,'GetSoftCustom',720,700)$LabelIco\GetSoftCustom.gif"
        arrButtons(73) = "Btn$顯示圖片標題$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPhotoList','圖片列表函數標簽',3,'GetList',800,700)$LabelIco\GetPhotoList.gif"
        arrButtons(74) = "Btn$顯示圖片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPicPhoto','顯示圖片圖文標簽',3,'GetPic',700,550)$LabelIco\GetPicPhoto.gif"
        arrButtons(75) = "Btn$顯示圖片幻燈片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicPhoto','顯示幻燈片圖片標簽',3,'GetSlide',700,550)$LabelIco\GetSlidePicPhoto.gif"
        arrButtons(77) = "Btn$顯示商品標題$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetProductList','商城列表函數標簽',5,'GetList',800,750)$LabelIco\GetProductList.gif"
        arrButtons(78) = "Btn$顯示商品圖片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPicProduct','顯示圖片商城標簽',5,'GetPic',700,600)$LabelIco\GetPicProduct.gif"
        arrButtons(79) = "Btn$顯示商品幻燈片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicProduct','顯示幻燈片商城標簽',5,'GetSlide',700,460)$LabelIco\GetSlidePicProduct.gif"
        arrButtons(80) = "Btn$商品自定義列表$SuperFunctionLabel('" & InstallDir &"Editor/editor_CustomListLabel.asp','CustomListLable','商城自定義列表標簽',5,'GetProductCustom',720,700)$LabelIco\GetProductCustom.gif"
        arrButtons(81) = "Btn$網站logo$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Logo.htm','240','140')$LabelIco\PE_logo.gif"
        arrButtons(82) = "Btn$網站banner$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Banner.htm','240','140')$LabelIco\PE_banner.gif"
        arrButtons(83) = "Btn$彈出公告$FunctionLabel('" & InstallDir &"Editor/Lable/PE_AnnWin.htm','240','140')$LabelIco\PE_PopAnnouce.gif"
        arrButtons(84) = "Btn$公告$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Annouce2.htm','240','210')$LabelIco\PE_Annouce.gif"
        arrButtons(85) = "Btn$友情$FunctionLabel('" & InstallDir &"Editor/Lable/PE_FSite2.htm','330','510')$LabelIco\PE_FriendSite.gif"
        arrButtons(86) = "Btn$調查$InsertLabel('ShowVote')$LabelIco\PE_Vote.gif"
        arrButtons(87) = "Btn$作者列表$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Author_ShowList.htm','400','345')$LabelIco\PE_Author.gif"
        arrButtons(88) = "Btn$廠商列表$FunctionLabel('" & InstallDir &"Editor/Lable/PE_ProducerList.htm','400','450')$LabelIco\PE_Producer.gif"
        arrButtons(89) = "Btn$顯示作品集排行$FunctionLabel('" & InstallDir &"Editor/Lable/PE_ShowBlogList.htm','400','400')$LabelIco\PE_Blog.gif"
        arrButtons(90) = "Btn$顯示專題列表$FunctionLabel('" & InstallDir &"Editor/Lable/PE_ShowSpecialList.htm','320','300')$LabelIco\PE_Special.gif"
        arrButtons(91) = "Btn$顯示注冊用戶$InsertLabel('ShowTopUser')$LabelIco\PE_user.gif"
        arrButtons(92) = "Btn$登錄$InsertLabel('ShowAdminLogin')$LabelIco\PE_AdminLogin.gif"
        arrButtons(93) = "Btn$導航$InsertLabel('ShowPath')$LabelIco\PE_Path.gif"
        arrButtons(94) = "Btn$版權$InsertLabel('Copyright')$LabelIco\PE_Copyright.gif"

        查看更多 動易Cms教程  動易Cms模板

        來源:模板無憂//所屬分類:動易Cms教程/更新時間:2006-05-21
        相關動易Cms教程
        <tr id="4coym"></tr>
        <samp id="4coym"></samp>
      • <th id="4coym"></th>