亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? editor.js

?? 本程序采用花香內核
?? JS
?? 第 1 頁 / 共 4 頁
字號:
//
// htmlArea v2.03 - Copyright (c) 2002 interactivetools.com, inc.
// This copyright notice MUST stay intact for use (see license.txt).
//
// A free WYSIWYG editor replacement for <textarea> fields.
// translated by xydw.com
// For full source code and docs, visit http://www.interactivetools.com/
//

// write out styles for UI buttons
document.write('<style type="text/css">\n');
document.write('.btn     { width: 22px; height: 22px; border: 1px solid buttonface; margin: 0; padding: 0; }\n');
document.write('.btnOver { width: 22px; height: 22px; border: 1px outset; }\n');
document.write('.btnDown { width: 22px; height: 22px; border: 1px inset; background-color: buttonhighlight; }\n');
document.write('.btnNA   { width: 22px; height: 22px; border: 1px solid buttonface; filter: alpha(opacity=25); }\n');
document.write('.cMenu     { background-color: threedface; color: menutext; cursor: Default; font-family: MS Sans Serif; font-size: 8pt; padding: 2 12 2 16; }');
document.write('.cMenuOver { background-color: highlight; color: highlighttext; cursor: Default; font-family: MS Sans Serif; font-size: 8pt; padding: 2 12 2 16; }');
document.write('.cMenuDivOuter { background-color: threedface; height: 9 }');
document.write('.cMenuDivInner { margin: 0 4 0 4; border-width: 1; border-style: solid; border-color: threedshadow threedhighlight threedhighlight threedshadow; }');
document.write('</style>\n');


/* ---------------------------------------------------------------------- *\
  Function    : editor_defaultConfig
  Description : default configuration settings for wysiwyg editor
\* ---------------------------------------------------------------------- */

function editor_defaultConfig(objname) {

this.version = "2.03"

this.width =  "auto";
this.height = "auto";
this.bodyStyle = 'background-color: #FFFFFF; font-family: "宋體"; font-size: 12px;';
this.imgURL = _editor_url + 'images/';
this.debug  = 0;

this.replaceNextlines = 0; // replace nextlines from spaces (on output)
this.plaintextInput = 0;   // replace nextlines with breaks (on input)

this.toolbar = [
    ['fontname'],
    ['fontsize'],
//    ['fontstyle'],
//    ['linebreak'],
    ['bold','italic','underline','separator'],
//  ['strikethrough','subscript','superscript','separator'],
    ['justifyleft','justifycenter','justifyright','separator'],
    ['OrderedList','UnOrderedList','Outdent','Indent','separator'],
    ['forecolor','backcolor','separator'],
    ['HorizontalRule','Createlink','InsertImage','InsertTable','htmlmode','separator'],
//  ['custom1','custom2','custom3','separator'],
    ['popupeditor','about']];

this.fontnames = {
    "宋體":            "宋體",
    "黑體":            "黑體",
    "楷體_GB2312":     "楷體_GB2312",
    "隸書":            "隸書",
    "Comic Sans MS":   "Comic Sans MS",
    "Arial":           "arial, helvetica, sans-serif",
    "Courier New":     "courier new, courier, mono",
    "Georgia":         "Georgia, Times New Roman, Times, Serif",
    "Tahoma":          "Tahoma, Arial, Helvetica, sans-serif",
    "Times New Roman": "times new roman, times, serif",
    "Verdana":         "Verdana, Arial, Helvetica, sans-serif",
    "impact":          "impact",
    "WingDings":       "WingDings"};

this.fontsizes = {
    "1 (8 pt)":  "1",
    "2 (10 pt)": "2",
    "3 (12 pt)": "3",
    "4 (14 pt)": "4",
    "5 (18 pt)": "5",
    "6 (24 pt)": "6",
    "7 (36 pt)": "7"
  };

//this.stylesheet = "http://www.xydw.com/sample.css"; // full URL to stylesheet

this.fontstyles = [     // make sure these exist in the header of page the content is being display as well in or they won't work!
//    { name: "headline",     className: "headline",  classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },
//    { name: "arial red",    className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },
//    { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" },
];

this.btnList = {
    // buttonName:    commandID,               title,                onclick,                   image,             
    "bold":           ['Bold',                 '加粗',               'editor_action(this.id)',  'ed_format_bold.gif'],
    "italic":         ['Italic',               '斜體',             'editor_action(this.id)',  'ed_format_italic.gif'],
    "underline":      ['Underline',            '下劃線',          'editor_action(this.id)',  'ed_format_underline.gif'],
    "strikethrough":  ['StrikeThrough',        'Strikethrough',      'editor_action(this.id)',  'ed_format_strike.gif'],
    "subscript":      ['SubScript',            'Subscript',          'editor_action(this.id)',  'ed_format_sub.gif'],
    "superscript":    ['SuperScript',          'Superscript',        'editor_action(this.id)',  'ed_format_sup.gif'],
    "justifyleft":    ['JustifyLeft',          '左對齊',       'editor_action(this.id)',  'ed_align_left.gif'],
    "justifycenter":  ['JustifyCenter',        '居中',     'editor_action(this.id)',  'ed_align_center.gif'],
    "justifyright":   ['JustifyRight',         '右對齊',      'editor_action(this.id)',  'ed_align_right.gif'],
    "orderedlist":    ['InsertOrderedList',    '列表',       'editor_action(this.id)',  'ed_list_num.gif'],
    "unorderedlist":  ['InsertUnorderedList',  '列表2',      'editor_action(this.id)',  'ed_list_bullet.gif'],
    "outdent":        ['Outdent',              '左縮進',    'editor_action(this.id)',  'ed_indent_less.gif'],
    "indent":         ['Indent',               '右縮進',    'editor_action(this.id)',  'ed_indent_more.gif'],
    "forecolor":      ['ForeColor',            '字體顏色',         'editor_action(this.id)',  'ed_color_fg.gif'],
    "backcolor":      ['BackColor',            '背景顏色',   'editor_action(this.id)',  'ed_color_bg.gif'],
    "horizontalrule": ['InsertHorizontalRule', '水平線',    'editor_action(this.id)',  'ed_hr.gif'],
    "createlink":     ['CreateLink',           '超連接',    'editor_action(this.id)',  'ed_link.gif'],
    "insertimage":    ['InsertImage',          '插入圖片',       'editor_action(this.id)',  'ed_image.gif'],
    "inserttable":    ['InsertTable',          '插入表格',       'editor_action(this.id)',  'insert_table.gif'],
    "htmlmode":       ['HtmlMode',             '編輯HTML',   'editor_setmode(\''+objname+'\')', 'ed_html.gif'],
    "popupeditor":    ['popupeditor',          '新窗口中編輯',     'editor_action(this.id)',  'fullscreen_maximize.gif'],
    "about":          ['about',                '版權說明',  'editor_about(\''+objname+'\')',  'ed_about.gif'],

    // Add custom buttons here:
    "custom1":           ['custom1',         'Purpose of button 1',  'editor_action(this.id)',  'ed_custom.gif'],
    "custom2":           ['custom2',         'Purpose of button 2',  'editor_action(this.id)',  'ed_custom.gif'],
    "custom3":           ['custom3',         'Purpose of button 3',  'editor_action(this.id)',  'ed_custom.gif'],
   // end: custom buttons

    "help":           ['showhelp',             'Help using editor',  'editor_action(this.id)',  'ed_help.gif']};


}

/* ---------------------------------------------------------------------- *\
  Function    : editor_generate
  Description : replace textarea with wysiwyg editor
  Usage       : editor_generate("textarea_id",[height],[width]);
  Arguments   : objname - ID of textarea to replace
                w       - width of wysiwyg editor
                h       - height of wysiwyg editor
\* ---------------------------------------------------------------------- */


function editor_generate(objname,userConfig) {

  // Default Settings
  var config = new editor_defaultConfig(objname);
  if (userConfig) { 
    for (var thisName in userConfig) {
      if (userConfig[thisName]) { config[thisName] = userConfig[thisName]; }
    }
  }
  document.all[objname].config = config;                  // store config settings

  // set size to specified size or size of original object
  var obj    = document.all[objname];
  if (!config.width || config.width == "auto") {
    if      (obj.style.width) { config.width = obj.style.width; }      // use css style
    else if (obj.cols)        { config.width = (obj.cols * 8) + 22; }  // col width + toolbar
    else                      { config.width = '100%'; }               // default
  }
  if (!config.height || config.height == "auto") {
    if      (obj.style.height) { config.height = obj.style.height; }   // use css style
    else if (obj.rows)         { config.height = obj.rows * 17 }       // row height
    else                       { config.height = '200'; }              // default
  }

  var tblOpen  = '<table border=0 cellspacing=0 cellpadding=0 style="float: left;"  unselectable="on"><tr><td style="border: none; padding: 1 0 0 0"><nobr>';
  var tblClose = '</nobr></td></tr></table>\n';

  // build button toolbar

  var toolbar = '';
  var btnGroup, btnItem, aboutEditor;
  for (var btnGroup in config.toolbar) {

    // linebreak
    if (config.toolbar[btnGroup].length == 1 &&
        config.toolbar[btnGroup][0].toLowerCase() == "linebreak") {
      toolbar += '<br clear="all">';
      continue;
    }

    toolbar += tblOpen;
    for (var btnItem in config.toolbar[btnGroup]) {
      var btnName = config.toolbar[btnGroup][btnItem].toLowerCase();

      // fontname
      if (btnName == "fontname") {
        toolbar += '<select id="_' +objname+ '_FontName" onChange="editor_action(this.id)" unselectable="on" style="margin: 1 2 0 2; font-size: 12px;">';
        for (var fontname in config.fontnames) {
          toolbar += '<option value="' +config.fontnames[fontname]+ '">' +fontname+ '</option>'
        }
        toolbar += '</select>';
        continue;
      }

      // fontsize
      if (btnName == "fontsize") {
        toolbar += '<select id="_' +objname+ '_FontSize" onChange="editor_action(this.id)" unselectable="on" style="margin: 1 2 0 0; font-size: 12px;">';
        for (var fontsize in config.fontsizes) {
          toolbar += '<option value="' +config.fontsizes[fontsize]+ '">' +fontsize+ '</option>'
        }
        toolbar += '</select>\n';
        continue;
      }

      // font style
      if (btnName == "fontstyle") {
        toolbar += '<select id="_' +objname+ '_FontStyle" onChange="editor_action(this.id)" unselectable="on" style="margin: 1 2 0 0; font-size: 12px;">';
        + '<option value="">Font Style</option>';
        for (var i in config.fontstyles) {
          var fontstyle = config.fontstyles[i];
          toolbar += '<option value="' +fontstyle.className+ '">' +fontstyle.name+ '</option>'
        }
        toolbar += '</select>';
        continue;
      }

      // separator
      if (btnName == "separator") {
        toolbar += '<span style="border: 1px inset; width: 1px; font-size: 16px; height: 16px; margin: 0 3 0 3"></span>';
        continue;
      }

      // buttons
      var btnObj = config.btnList[btnName];
      if (btnName == 'linebreak') { alert("htmlArea error: 'linebreak' must be in a subgroup by itself, not with other buttons.\n\nhtmlArea wysiwyg editor not created."); return; }
      if (!btnObj) { alert("htmlArea error: button '" +btnName+ "' not found in button list when creating the wysiwyg editor for '"+objname+"'.\nPlease make sure you entered the button name correctly.\n\nhtmlArea wysiwyg editor not created."); return; }
      var btnCmdID   = btnObj[0];
      var btnTitle   = btnObj[1];
      var btnOnClick = btnObj[2];
      var btnImage   = btnObj[3];
      toolbar += '<button title="' +btnTitle+ '" id="_' +objname+ '_' +btnCmdID+ '" class="btn" onClick="' +btnOnClick+ '" onmouseover="if(this.className==\'btn\'){this.className=\'btnOver\'}" onmouseout="if(this.className==\'btnOver\'){this.className=\'btn\'}" unselectable="on"><img src="' +config.imgURL + btnImage+ '" border=0 unselectable="on"></button>';


    } // end of button sub-group
    toolbar += tblClose;
  } // end of entire button set

  // build editor

  var editor = '<span id="_editor_toolbar"><table border=0 cellspacing=0 cellpadding=0 bgcolor="buttonface" style="padding: 1 0 0 2" width=' + config.width + ' unselectable="on"><tr><td>\n'
  + toolbar
  + '</td></tr></table>\n'
  + '</td></tr></table></span>\n'
  + '<textarea ID="_' +objname + '_editor" style="width:' +config.width+ '; height:' +config.height+ '; margin-top: -1px; margin-bottom: -1px;" wrap=soft></textarea>';

  // add context menu
  editor += '<div id="_' +objname + '_cMenu" style="position: absolute; visibility: hidden;"></div>';

  //  hide original textarea and insert htmlarea after it
  if (!config.debug) { document.all[objname].style.display = "none"; }

  if (config.plaintextInput) {     // replace nextlines with breaks
    var contents = document.all[objname].value;
    contents = contents.replace(/\r\n/g, '<br>');
    contents = contents.replace(/\n/g, '<br>');
    contents = contents.replace(/\r/g, '<br>');
    document.all[objname].value = contents;
  }

  // insert wysiwyg
  document.all[objname].insertAdjacentHTML('afterEnd', editor)

  // convert htmlarea from textarea to wysiwyg editor
  editor_setmode(objname, 'init');

  // call filterOutput when user submits form
  for (var idx=0; idx < document.forms.length; idx++) {
    var r = document.forms[idx].attachEvent('onsubmit', function() { editor_filterOutput(objname); });
    if (!r) { alert("Error attaching event to form!"); }
  }

return true;

}

/* ---------------------------------------------------------------------- *\
  Function    : editor_action
  Description : perform an editor command on selected editor content
  Usage       :
  Arguments   : button_id - button id string with editor and action name
\* ---------------------------------------------------------------------- */

function editor_action(button_id) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲亚洲国产日韩| 成人丝袜视频网| 欧美国产精品v| 欧美日韩电影一区| 成人av网址在线| 奇米影视一区二区三区| 亚洲欧洲99久久| wwwwww.欧美系列| 欧美精品色综合| 91色porny蝌蚪| 国产成人无遮挡在线视频| 视频一区中文字幕| 一区二区三区日韩| 国产精品色噜噜| 精品国产a毛片| 欧美乱熟臀69xxxxxx| 色久综合一二码| 成人黄色av电影| 国产精品自拍一区| 精品午夜久久福利影院| 青草av.久久免费一区| 婷婷开心久久网| 亚洲超碰97人人做人人爱| 亚洲少妇30p| 国产精品国产三级国产三级人妇| 久久九九久精品国产免费直播| 日韩女优视频免费观看| 欧美一区二区三区日韩| 欧美精品电影在线播放| 欧美高清一级片在线| 在线观看91视频| 懂色av一区二区夜夜嗨| 欧美tickling挠脚心丨vk| 日韩视频免费直播| 国产在线一区二区| 免费视频一区二区| 美女网站一区二区| 日韩高清不卡一区二区| 一区二区三区**美女毛片| 自拍偷拍亚洲激情| 亚洲欧美偷拍三级| 久久99九九99精品| 国产亚洲制服色| 国产成人在线视频网址| 国产精品丝袜91| av日韩在线网站| 亚洲黄色免费网站| 欧美精品久久99久久在免费线 | 久久精品二区亚洲w码| 日韩女同互慰一区二区| 国产成人免费av在线| 《视频一区视频二区| 欧美日韩国产大片| 久久精品久久99精品久久| 久久精品一区二区三区不卡牛牛 | 日本精品视频一区二区| 三级欧美韩日大片在线看| 日韩一级视频免费观看在线| 国产一区二区三区不卡在线观看| 中文字幕av不卡| 欧美午夜视频网站| 精品一区二区三区免费视频| 日本一区二区三区高清不卡| 欧美午夜一区二区三区免费大片| 久久精品国产亚洲a| 亚洲色欲色欲www| 日韩限制级电影在线观看| 成人动漫一区二区三区| 亚洲国产精品久久久男人的天堂| 精品久久久久一区二区国产| 成人美女视频在线观看18| 日韩国产在线一| 国产精品福利在线播放| 欧美系列一区二区| 成人动漫在线一区| 韩国三级电影一区二区| 一区二区三区四区在线播放| 精品乱人伦一区二区三区| 成人av电影在线观看| 日韩激情视频在线观看| 亚洲美女电影在线| 久久影视一区二区| 欧美日韩成人在线一区| av在线播放成人| 韩国欧美国产1区| 五月婷婷欧美视频| 亚洲婷婷综合久久一本伊一区 | 成人免费在线视频观看| 日韩免费看的电影| 在线播放欧美女士性生活| 色综合久久中文综合久久牛| 国产在线精品视频| 捆绑调教美女网站视频一区| 亚洲一区av在线| 亚洲女女做受ⅹxx高潮| 国产精品传媒在线| 国产日韩av一区二区| 精品少妇一区二区三区免费观看 | 国产精品一区免费在线观看| 丝袜国产日韩另类美女| 亚洲情趣在线观看| 国产精品久久久久久久蜜臀| 久久久99久久| 久久久久亚洲综合| 精品国偷自产国产一区| 日韩欧美成人激情| 欧美mv日韩mv亚洲| 日韩一级黄色大片| 欧美一二三在线| 日韩一区二区在线免费观看| 欧美一区二区久久| 91精品国产一区二区三区蜜臀| 精品视频在线免费看| 欧美在线综合视频| 欧美性淫爽ww久久久久无| 一本色道久久综合亚洲aⅴ蜜桃| 95精品视频在线| 91成人在线观看喷潮| 欧美亚男人的天堂| 欧美一级淫片007| 日韩欧美激情一区| 久久男人中文字幕资源站| 国产片一区二区| 中文字幕日韩一区| 一区二区不卡在线播放| 亚洲成人av福利| 日本亚洲视频在线| 国产乱码精品一区二区三区五月婷| 国产电影精品久久禁18| 成人动漫一区二区三区| 在线观看国产一区二区| 欧美一区二区三区免费视频 | 91精品国产综合久久福利软件 | 日韩你懂的电影在线观看| 国产婷婷精品av在线| 综合电影一区二区三区| 亚洲国产毛片aaaaa无费看| 免费高清不卡av| 高清视频一区二区| 欧美视频三区在线播放| 日韩亚洲欧美在线观看| 中文字幕 久热精品 视频在线| 亚洲精品久久久蜜桃| 美国十次综合导航| 国产成人精品一区二区三区网站观看| 色综合色狠狠综合色| 欧美一卡二卡三卡| 国产精品久久久久久久蜜臀 | 26uuu久久天堂性欧美| 欧美国产成人精品| 婷婷成人激情在线网| 成人污视频在线观看| 欧美精品自拍偷拍| 欧美精品一区二区三区在线播放| 综合久久一区二区三区| 蜜桃一区二区三区四区| 99久久综合色| 欧美刺激午夜性久久久久久久| 成人免费在线视频观看| 麻豆精品一区二区综合av| 成人国产亚洲欧美成人综合网| 91精品欧美久久久久久动漫| 中文字幕国产精品一区二区| 蜜桃久久av一区| 在线视频一区二区三区| 欧美激情一区在线| 精品伊人久久久久7777人| 91国偷自产一区二区三区观看| wwww国产精品欧美| 欧美视频在线一区二区三区 | 国产一区二区三区四| 欧美在线观看禁18| 国产校园另类小说区| 青青草97国产精品免费观看 | 日本 国产 欧美色综合| 9久草视频在线视频精品| 精品av综合导航| 日韩国产欧美在线视频| 91国模大尺度私拍在线视频| 中文字幕欧美区| 国产乱一区二区| 精品动漫一区二区三区在线观看| 亚洲成人黄色小说| 欧美在线观看一区| 亚洲情趣在线观看| 一本久久a久久免费精品不卡| 国产精品免费丝袜| 国产成人免费视频| 国产丝袜欧美中文另类| 国产精品18久久久久久vr| 日韩免费视频线观看| 日韩 欧美一区二区三区| 欧美日韩午夜在线视频| 亚洲激情一二三区| 91视频国产资源| 亚洲精选视频在线| 粉嫩在线一区二区三区视频| 欧美午夜在线观看| 亚洲毛片av在线| 91在线播放网址|